필터 지우기
필터 지우기

Difference between .m and .mat files

조회 수: 140 (최근 30일)
Ali
Ali 2012년 1월 25일
댓글: Andreas Goser 2016년 8월 16일
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!

채택된 답변

Andreas Goser
Andreas Goser 2012년 1월 25일
편집: Stephen23 2015년 12월 15일
  • MATLAB code is in files with extension .M.
  • MATLAB data is in files with extension .MAT.
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')

추가 답변 (1개)

saptesh pandit
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
Andreas Goser
Andreas Goser 2016년 8월 16일
Which is a totally different question and I suggest to ask as a new one.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by