plotting Table doesn't work anymore?
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Niklas Kurz
el 22 de Oct. de 2020
Comentada: Peter Perkins
el 19 de Nov. de 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?
0 comentarios
Respuesta aceptada
madhan ravi
el 22 de Oct. de 2020
Editada: madhan ravi
el 22 de Oct. de 2020
x = T{:, 1}
y = T{:, 2}
2 comentarios
Peter Perkins
el 19 de Nov. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Tables en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!