Attempt The Following Questions and Assume Any Missing Data
Attempt The Following Questions and Assume Any Missing Data
Attempt the following questions and assume any missing data Question (I) : Determine the size and contents of the following arrays. Note that the later arrays may depend on the definitions of arrays defined earlier in this exercise. (a) a = 2:3:8; (b) b = [a' a' a']; (c) c = b(1:2:3,1:2:3); (d) d = a + b(2,:); (e) w = [zeros(1,3) ones(3,1)' 3:5']; (f ) b([1 3],2) = b([3 1],2); (g) e = 1:-1:5; Question (III) Write a MATLAB program to evaluate a function f(x, y) for any two user-specified values x and y. The function f (x, y) is defined as follows:
jj =
%d and a =
%d\n',ii,jj,a)
end end