フィルターのクリア

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 Center および File ExchangeData Exploration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by