WHY DO I GET THIS ERROR USING THE ERROR BAR AND PLOT?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Pul
am 21 Jul. 2021
Kommentiert: Star Strider
am 21 Jul. 2021
Hello,
does anyone know why I get this error: "Input arguments must be numeric, datetime, duration or categorical"?
Thank you.
1 Kommentar
Akzeptierte Antwort
Star Strider
am 21 Jul. 2021
The errorbar call should be:
errorbar(x, MODESTAMMEQ.Var5, MODESTAMMEQ.Var4,'.r','MarkerSize',6)
since ‘MODESTAMMEQ.Jan1989’ (that likely threw the error) has to be processed in the regexp and datetime calls to be usable as ‘x’.
However the ‘MODESTA’ table does not exist, so the second plot call does nothing, and substituting:
plot(x,[y, MODESTAMMEQ.Var5]);
gives a very strange result (at least to me).
.
8 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Errorbars finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!