plotting functions with many inputs

Hi,
A plot can be generated by using plot(x,y). What if I want to have a user-defined number of inputs?
plot(x_1,y_1,x_2,y_2) would be easy to type for 2 inputs. But what if I have 100 inputs? How do I make it efficient?
Thanks

Respuestas (1)

dpb
dpb el 1 de Dic. de 2014

0 votos

Use arrays and it's still plot(x,y) -- that's the power of Matlab.

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Preguntada:

cgo
el 1 de Dic. de 2014

Respondida:

dpb
el 1 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by