Get Answers to all your Questions

header-bg qa

The value of p after this command: A =[1:4; 5:8; 9:12]; p = size(A);.options are (a)will be 12(b)will be a 3-by-4 matrix(c)-will be a 2-element vectord-4?

Answers (1)

best_answer

A=[1:4] ; ;is ; ;array ; ;representation; ; of; ; the; ; matrixRightarrow A=[1 ; ;2; ;3; ;4]

A=[1:4;5:8;9:12]=eginbmatrix 1 &2 & 3 &4 \ 5& 6 &7 &8 \9 &10 & 11 & 12 endbmatrix

P=size ; (A)=3*4

So, Ans is an option (b)

Posted by

Deependra Verma

View full answer