Effacer les filtres
Effacer les filtres

plotting Table doesn't work anymore?

33 vues (au cours des 30 derniers jours)
Niklas Kurz
Niklas Kurz le 22 Oct 2020
Commenté : Peter Perkins le 19 Nov 2020
I alyways plotted my tables like:
T = readtable('path')
x = T(:,1)
y = T(:,2)
plot(x,y)
Why doesn't this work anymore???
it says: "Tables and timetables do not have a plot method."
But as I stated, it worked before. Something has changed?

Réponse acceptée

madhan ravi
madhan ravi le 22 Oct 2020
Modifié(e) : madhan ravi le 22 Oct 2020
x = T{:, 1}
y = T{:, 2}
  2 commentaires
Niklas Kurz
Niklas Kurz le 22 Oct 2020
I really wonder how I manage to see and live ....
Peter Perkins
Peter Perkins le 19 Nov 2020
People do get confused over braces vs. parens, but the key is that you want to call plot with the two variables in the table, not the table itself. Perhaps more readable would be plot(T.x,T.y), if you know the var names.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by