Question: USE MATHLAB AND ANSWER THEM ALL PLEASE Summer 2016 3. Given the following system of linear equations, use MATLAB to solve it. W steps. [6]
Summer 2016 3. Given the following system of linear equations, use MATLAB to solve it. W steps. [6] 4. (a) Given a polynomial of 25-3x4 +2-9, evaluate this polynomial at x-7 using MAT- LAB built-in functions. Write all steps. [3] (b) If x is given as a vector x 123456), how can you evaluate the above polynomial using MATLAB built-in functions? Write all steps. 12) Page 4 of 12 Summer 2016 5. What would happen if you use the name of a built-in function, for example, cos, as a variable name? [4] 6. Use your own words to describe the local variable and global variable, what are the scope of these two types of variables? [6] 7. If you are given a vector vecs(33 7 -9 21 -5 32 72 65 -391 that erroneously stores nega- tive values, how can you eliminate those negative values? Use two methods. [6] Summer 2016 s. Evaluate the following relational and logical expressions as Matlab does. [10] (b) xor('df-2, 25+8 (d) (7=5+2) | 1 (e) 10>5> 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
