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일

0 개 추천

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

카테고리

도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

cgo
2014년 12월 1일

답변:

dpb
2014년 12월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by