For 2-D plot, command " plot(x,y)" gives us a graph of y vs x. but what is output of "plot(y).

 采纳的回答

Walter Roberson
Walter Roberson 2014-3-14

0 个投票

If y is a vector, then plot(y) is the same as plot(1:length(y), y)
If y is a 2D matrix, then the assumed x is 1:size(y,1) and one line is created for each column of y.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by