Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
??? Attempt to reference field of non-structure array. Error in ==> at 11 x=data.x;
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am using a dataset heart.dat. When I run i get this error..Any suggestion/error?
Code:
data=load('heart.dat'); x=data.x; x=x';
Thanks
3 comentarios
Adam
el 23 de Mzo. de 2016
Editada: Adam
el 23 de Mzo. de 2016
What are you expecting x to be then?
You get a 270*14 numeric matrix when you load that data, not a struct. If you want a specific column of the data you can use e.g.
x = data(:,1);
but it depends entirely what you want to access from the data.
Respuestas (0)
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!