필터 지우기
필터 지우기

plot function give data error

조회 수: 1 (최근 30일)
msh jgtu
msh jgtu 2020년 1월 1일
답변: Star Strider 2020년 1월 1일
I want to plot data that i have extracted from a figure using plot function but it gives error message "Not enough input arguments"
the data are x1 and y1
plot(x1,y1)
x1 =
[1x10 double]
[1x10 double]
[1x10 double]
[1x10 double]
y1 =
[1x10 double]
[1x10 double]
[1x10 double]
[1x10 double]
>>

답변 (1개)

Star Strider
Star Strider 2020년 1월 1일
They would appear to be cell arrays.
This will work:
figure
plot([x1{:}], [y1{:}])
however you will probably prefer this result:
figure
hold on
for k = 1:size(x1,1)
plot(x1{k}, y1{k})
end
hold off
grid

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by