What is the difference between .m and .mat files in MATLAB

前端 未结 1 339
北海茫月
北海茫月 2021-01-30 12:54

When I traced my reference MATLAB script, I found files with the .mat extension. My questions are:

  1. What is the difference between .mat an
相关标签:
1条回答
  • 2021-01-30 13:22

    Files with a .m extension contain MATLAB code, either in the form of a script or a function.

    Files with a .mat extension contain MATLAB formatted data, and data can be loaded from or written to these files using the functions load and save, respectively. You can also access and change variables directly in MAT-files without loading them into memory using the function matfile.

    0 讨论(0)
提交回复
热议问题