plotting functions with many inputs

2 Ansichten (letzte 30 Tage)
cgo
cgo am 1 Dez. 2014
Beantwortet: dpb am 1 Dez. 2014
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

Antworten (1)

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

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by