Error using plot Invalid data argument.
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Walter Roberson
il 21 Set 2024
I would guess that you need
plot(categorical(x), y)
and
plot(categorical(x), z)
0 Commenti
Voss
il 21 Set 2024
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 Commenti
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!