Question: 26) Create a vector named a and set its value to 100 200 300 400 500 600 700 800 900 1000. (note use the colon
26) Create a vector named a and set its value to 100 200 300 400 500 600 700 800 900 1000. (note use the colon operator)
27) Print the fifth, sixth, and seventh elements of a via indexing matrix a with the colon operator. .
28) Give an example to illustrate the difference between the linspace function and the colon operator.
29) A = [2; 7; 4] write this Matlab command in a different way.
32) What is the command you should use to horizontally join matrices W and R, respectively?
33) What is the command you should use to vertically join matrices W and R, respectively?
34) What is the result of using the command R(:)?
35) What is the result of using M(:,1:2:3)?
36) Create a 5 by 5 magic matric and named it MAG.
37) Find the sum of the rows, columns, main diagonal, and secondary diagonal. What do you observe?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
