MATLAB file on opening showing weird symbols or letters

15 visualizaciones (últimos 30 días)
Mayank
Mayank el 12 de Ag. de 2024
Respondida: nick el 12 de Ag. de 2024
I had saved a .m file and today when i tried opening the file it just shows some symbols and letters like
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Aug 9 16:22:11 2024
‰ì=³÷<öã{ÏÌdÙ„·ý^Ÿë÷=×õ<ës]çÜÎýñ|¾vÐÑѱÐÑ1ýï‘XLÿ»#nŒÄb%Ãÿ=ðÿߦ£ÿ¿×ŠwM

Respuestas (1)

nick
nick el 12 de Ag. de 2024
Hi Mayank,
I understand that you are getting weird symbols when opening a .M file.
The attached text states that it is a .MAT file instead of .M file.The weird symbols and letters occur as the .MAT file is saved as a .M file, for example by using the following command:
save FileName.m
You can see the information inside the .M file by using the following command:
whos -file FileName.m
You may refer to the following MATLAB Answer to learn more about the difference between M and MAT files :
Hope this helps!

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by