If we want to plot matrix arguments, which of the following gets plotted?

Duyên Trương

New member
If we want to plot matrix arguments, which of the following gets plotted?
A. Column wise inter-relation of two arguments
B. Row wise inter-relation of two arguments
C. Diagonally inter-relation of two arguments
D. The arguments are incomprehensible
 
Answer: a
Explanation: We have to keep in mind the order while trying to plot two matrix arguments. MATLAB will take the column wise relation between the two arguments.
So, if x=[x1 x2 x3];y=[y1 y2 y3]; plot(x,y)- MATLAB will generate a plot between (x1,y1),(x2,y2) and so on.
 

Tìm kiếm

Back
Top