plotting functions with many inputs

3 次查看(过去 30 天)
cgo
cgo 2014-12-1
回答: dpb 2014-12-1
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by