Do the following scripted exercise The prompt indicates wha

Do the following scripted exercise. The >> prompt indicates what you should type into the MATLAB Command Window. Note that some of these commands may result in error messages.

Solution

v=[2:2:6] =[2 4 6]

u=[1:0.5:3]=[1 1.5 2.0 2.5 3.0]

j=u+v is not possible as tye number of elements in u and v are not same.

Hence it doesnt work.

c=u^2 wont work because we cannot directly square a vector with itself instead we need to access each element and square it .

In case of f=[1,2,3;4,5] thus wont work because no of elements is not same in both rows

 Do the following scripted exercise. The >> prompt indicates what you should type into the MATLAB Command Window. Note that some of these commands may res

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site