how to make matlab save (filename) command work?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Loren99
el 9 de Jun. de 2022
Hi everyone! When I try to write save(filename) something strange like this happen to my code. The strange thing is that a week ago I was able to use these command without problems. Can anyone help me?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1026425/image.png)
1 comentario
Respuesta aceptada
Voss
el 9 de Jun. de 2022
Editada: Voss
el 9 de Jun. de 2022
save saves to a mat file, so what is happening when you do this
save('untitled2.m')
is that a file is created called untitled.m, which has .m extension but .mat format, so when you look at it in the editor you're looking at binary data contained in that mat file.
To save a mat file with .mat extension do this
save('untitled2.mat')
or this
save('untitled2')
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings 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!