2010-07-02 51 views

回答

1

如果你想在2D情節分別繪製每一列,你只寫

plot(A) 

如果你想用線條3D繪圖,你可以寫:

[xx,yy] = ndgrid(1:6,1:5); 
A = [A;NaN(1,size(A,2))]; %# add NaNs so that the lines will be plotted separately 
plot3(xx(:),yy(:),A(:)) %# use plot3(xx(:),yy(:),A(:),'.') if you want to plot dots instead of lines.