- MATLAB code is in files with extension .M.
- MATLAB data is in files with extension .MAT.
Difference between .m and .mat files
조회 수: 140 (최근 30일)
이전 댓글 표시
What's the difference betwwen .m and .mat files? can a file from .m format be converted automatically to .mat?
Many thanks in advance for your answer!
댓글 수: 0
채택된 답변
Andreas Goser
2012년 1월 25일
편집: Stephen23
2015년 12월 15일
Thus, you can't always "convert". But if your MATLAB code just contains variable assignments, yes then you can "convert"
Assuming you have a file testm.m with the assigments
a=1
b=2
then you would convert by running the file and then save a MAT file
testm
save('testmat.mat')
댓글 수: 0
추가 답변 (1개)
saptesh pandit
2016년 8월 13일
how do I provide communication between script and simulink model. And is it possible to run model and script simultaneously.
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!