What is the output in the following code? [code]a=[[1;22],[53;9],[13;2]];[/code]

Trung Minh

New member
What is the output in the following code?
Code:
a=[[1;22],[53;9],[13;2]];
A. There is no output
B. Columns are to be introduced by placing semi-columns
C. Dimensions of matrices being concatenated are not consistent
D.
a = 1 53 13
22 9 2
 
Answer: a
Explanation: The a matrix will be stored in the workspace as
a = 1 53 13
22 9 2
There is no error and there will be no output since the dimensions of matrices being concatenated are constant.
 

Tìm kiếm

Back
Top