error saving a struct
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Uri Pasos
el 3 de Jun. de 2019
Comentada: Uri Pasos
el 3 de Jun. de 2019
Hi. Anyone know why this gives an error? I'm using MATLAB R2017b
A = [];
A.days ={'Monday','Tuesday'};
A.debt = randn(5);
if strcmp(class(A),'struct') && isscalar(A)
save('A.mat','-struct',A)
end
Error using save
The argument to -STRUCT must be the name of a scalar structure variable.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Structures 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!