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 ExchangeLine Plots についてさらに検索

タグ

質問済み:

2014 年 3 月 14 日

回答済み:

2014 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by