1.

What is the basic difference between M-files and MAT-files?(a) There is no difference(b) MAT files are binary data files while m-files are ASCII text files(c) M files are binary data files while MAT-files are ASCII text files(d) There is no such thing as MAT filesThis question was addressed to me in examination.The origin of the question is M-Files in chapter Interacting with MATLAB of MATLAB

Answer» CORRECT option is (b) MAT files are BINARY DATA files while m-files are ASCII text files

Best explanation: M-files are ASCII text files which are used to simplify our program EDITING in MATLAB, they are basic text files. MAT files are Binary files created by MATLAB. When we need to save any data from the workspace, it is saved in MATLAB as a MAT file.


Discussion

No Comment Found

Related InterviewSolutions