Error using plot Invalid data argument.
10 ビュー (過去 30 日間)
古いコメントを表示
This is my program. Need help to solve it.
clc;
t = readtable('error graph.xlsx','Sheet','Sheet1');
x = t.ModelName;
y = t.Rmse;
z = t.R_2;
plot(x,y)
hold on
plot(x,z)
hold on
0 件のコメント
回答 (2 件)
Walter Roberson
2024 年 9 月 21 日
I would guess that you need
plot(categorical(x), y)
and
plot(categorical(x), z)
0 件のコメント
Voss
2024 年 9 月 21 日
Try replacing
x = t.ModelName;
with
x = categorical(t.ModelName);
And run the code again.
If that doesn't work, attach the xlsx file using the paperclip button.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!