MATLAB file on opening showing weird symbols or letters

조회 수: 15 (최근 30일)
Mayank
Mayank 2024년 8월 12일
답변: nick 2024년 8월 12일
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

답변 (1개)

nick
nick 2024년 8월 12일
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!

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by