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에 대해 자세히 알아보기

태그

질문:

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