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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Mzo. de 2014

0 votos

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.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Mzo. de 2014

Respondida:

el 14 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by