What is the difference between .m and .M?

What is the difference between .m(small m file) and .M(large m file)?

3 Comments

Matt J
Matt J on 11 May 2022
Edited: Matt J on 11 May 2022
Nothing Matlab-related, I don't think. Where did you come across a .M file?
I found it in old simulation model. old mat files are also .MAT, not .mat
there is no difference, file extensions are not case sensitive

Sign in to comment.

Answers (1)

Jan
Jan on 11 May 2022
Under Windows, files are not case-sensitive in general, but under Linux and MacOS they are. For code without dependencies on the platform, Matlab uses case-sensitive function names since R2009a (as far as I remember). If .M files are accepted is easy to test, but there is no general difference to .m files, because both are simply text files.

Categories

Tags

Asked:

on 11 May 2022

Answered:

Jan
on 11 May 2022

Community Treasure Hunt

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

Start Hunting!