필터 지우기
필터 지우기

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