1. (20 points)Suppose z=[10 40 50 80 30 70 60 90]. What does this vector look like
after each of these commands?
(iv) z([3 4 8 1])= =
2. (20 points) Use the linspace function to create vectors identical to the following created
with colon notation:
3. (20 points) Use colon notation to create vectors identical to the following created with
the linspace function:
(i) v=linspace (-3,0,5)
(ii) r=linspace (2,4,7)
3. (40 points) Write a MATLAB script that plots the following functions over to < r << 57:
f1(x) ####### sin² I - cos r,
f2(x) -0.1. 3 the 2,2² the 10,
fa(x) enf/r. ,
The plots should be in four separate frames, but all four frames should be in one figure
window. To do this you can use the subplot command to create 2 X 2 subfigures.
Your figures should be self explanatory (with clearly labeled axes). Include both your
MATLAB script and your figure.|
These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction
of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.