.M File Extension

Objective-C Implementation File

Developer Apple
Popularity
3.6  |  203 Votes
 

What is an M file?

An M file is a class implementation file used by programs written in Objective-C. It begins with the @implementation directive and initializes variables and functions that can be referenced by other Objective-C source files. M files may also reference header (.H) files.

More Information

Objective-C is most commonly used to implement applications for Apple's Mac OS X and iOS operating systems. Apple's Cocoa API provides the Objective-C programming interface for Mac OS X, and the iOS API provides the programming interface for the iOS platform.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open M files

Windows
Free
Free
Linux
Free
Free
Apple complier (cc)
Stepstone compiler (objcc)

MATLAB Source Code File

Developer The MathWorks
Popularity
3.5  |  81 Votes
 

An M file may also be a source code file used by The MathWorks MATLAB, an advanced application for analyzing data and performing mathematical computations. It may store a script, class, or an individual function in the MATLAB programming language that MATLAB users create to execute algorithms, plot graphs, and perform other mathematical operations. Since M files store plain text, you can use any text editor to open and edit them, although most users open them with MATLAB.

More Information

Screenshot of a .m file in The MathWorks MATLAB R2023a
M file open in The MathWorks MATLAB R2023a

MATLAB provides many features to analyze data, develop algorithms, create models, build apps, and more. One of its primary features is its high-level programming language, which scientists and engineers often use for various purposes, such as running simple data query commands or developing large-scale applications for collecting and visualizing data.

How to create an M file with MATLAB

To create an M file with MATLAB:

  1. Select New in the Editor tab
  2. Choose the type of file ("Script," "Function," etc.)
  3. Select Save → Save As...
  4. Name the file and choose the save location
  5. Select Save

How to open an M file

You can open an M file with The MathWorks MATLAB (multiplatform). To open an M file, select Open from the "HOME" or "EDITOR" tabs, choose the M file, then select Open.

Opening an M file with a text or source code editor

M file open in Apple Text Edit
M file open in Apple Text Edit

Since M files store plain text, you can open them with a text editor, such as Microsoft Notepad (Windows) or Apple TextEdit (Mac), or a source code editor. However, most users open and edit M files with MATLAB since the app provides helpful editing tools not available with third-party apps.

Programs that open M files

Windows
Mac
Linux

Mercury Source Code File

Developer The Mercury Project
Popularity
3.4  |  24 Votes
 

Source code file written using Mercury, a functional programming language that was developed at the University of Melbourne, Australia; saved using plain text formatting and uses syntax similar to Prolog.

More Information

Mercury was written in order to provide a robust language for large real world applications. It includes several error-checking features not provided by other logic programming languages. For example, the language incorporates static analysis that can catch type checking errors before runtime. This enables greater assurance over the correctness of the program and also allows the compiler to generate more efficient code. However, the developer must specify each of the "type," "mode," and "determinism" constructs while programming, which is not necessarily required by other languages.

NOTE: The developmental version of the Mercury compiler is currently distributed in a source code format and does not include compiler binaries. However, a Windows port of Mercury, called winmercury, includes binaries. It also includes Vim syntax highlighting files for source code editing.

Programs that open or reference M files

Windows
Free
Included with OS
Linux

Mathematica Input File

Developer Wolfram Research
Popularity
3.2  |  24 Votes
 

Contains functions or a set of instructions used by the Mathematica, a program for creating and running mathematical functions; saved in a text format, which can be viewed and edited with a basic text editor.

More Information

Files named "init.m" are initialization files that contain settings that are loaded when the Mathematica program is opened.

Programs that open M files

Windows
Mac
Included with OS
Linux

PC-98 Game Music File

Developer N/A
Popularity
3.2  |  19 Votes
 

Sound file format used by Japanese PC-98 computers and emulators; contains synthesizer music that can be used as instruments to create songs; referenced in order to know what music to play.

More Information

NOTE: In order to play M files with FMPMD2000, you need to download the WinFMP.dll and PMDWin.dll files, which are available from the same location.

Programs that open or reference M files

Windows

Verified by FileInfo.com

The FileInfo.com team has independently researched all file formats and software programs listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.