The value of p after this command: A =
[1:4; 5:8; 9:12]; p = size(A);.
a-will be 12
b-will be a 3-by-4 matrix
c-will be a 2-element vector
d-4
Answers
Answered by
2
Given:
The command A = [1:4; 5:8; 9:12];
To find:
The value of p after this command: A = [1:4; 5:8; 9:12]; p = size(A);.
Solution:
From given, we have a command,
A = [1:4; 5:8; 9:12];
The above command represents a 2 - element vector.
A =
1 2 3 4
5 6 7 8
9 10 11 12
So, we get an array of size 3 × 4
3 rows and 4 columns
⇒ 3 by 4 matrix
∴ Option (b) will be a 3-by-4 matrix is the correct option.
Similar questions
Math,
5 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Biology,
1 year ago