Nguyễn Thị Thuý
New member
What would be the output of the following code (in editor window)?
A. [1 25]
B. [1 2 3 4 5]
C. [25 16 9 4 1]
D. [1 4 9 16 25]
Code:
a=1:5 ; c=a.^2
B. [1 2 3 4 5]
C. [25 16 9 4 1]
D. [1 4 9 16 25]