Question: USING MATLAB a) Consider the vector x generated in MATLAB using the following statement: x = linspace(-5,18, 233) Write a MATLAB statement that generates a

USING MATLAB
a) Consider the vector x generated in MATLAB using the following statement: x = linspace(-5,18, 233)
Write a MATLAB statement that generates a vector y identical to the vector x, but generated using the colon notation.
b) Assume that the variables A and B, shown below, have already been generated in MATLAB. A = [2 -1 3 5; 0 0 1 7; 9 2 6 3; 4 -7 -5 -2; 1 0 3 6] and B = [15 12 20 30; 50 70 90 80]
Write one single MATLAB statement that generates the variable M, shown below using the variables A and B. M= [0 0 1 50; 9 2 6 70; 4 -7 -5 90; 2 -1 3 80]
c) Assume the variable V has already been generated in MATLAB. V= [2 1 3 10; 5 7 9 8]
What is G equal to after the following statements have been executed in MATLAB?
G = V; G(3,5) = 22
P.S. Can you explain C in detail, I don't get what it's asking.
MATLAB Assignment 1) a) ir X = linspace (-5,15, 233) uvite a Statment generating a Vester Y identical to Vecter & using the colon notation b) if ; B 2 115 12 20 30 150 70 90 80 A-12 -1 3 5 0 1 7 2 G 3 4-7 -5-2 36 write a statment the generated variable in using Variables A and B M=0 o 1 5o 2 6 10 19 4-7-590 2-1 3 80 C) 10 ir v=/2 3 15 1 9 8] What is 6 eaual to after the fullewing statment has been executed? G=V; 6 (35)- 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
