Question: Exercise 3 . 2 ( a ) Use the MATLAB colon operator ' G ' ( excluding th quotes ) to create a column vector

Exercise 3.2
(a) Use the MATLAB colon operator 'G'(excluding th quotes) to create a column vector x whose elements range from -5 to 4. Further, any two consecutive elements of x are uniformly seperated by 0.5. Next apply the MATLAB function length to find the number of elements N stored in x.
(b) Exploit the MATLAB function linspace to generate a column vector y which has identical end points and the same number of elements N as in x.
Caution: Entering the elements of x and y manually will receive NO credit.
(c) Apply the MATLAB logical operator =='(excluding the quotes) to verify that x is identically equal to y. Explain.
 Exercise 3.2 (a) Use the MATLAB colon operator 'G'(excluding th quotes)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!