Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

what is the use of .mat file?

Asked by sheno39

sheno39 (view profile)

on 19 Sep 2013

.mat file representation

0 Comments

sheno39

sheno39 (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 19 Sep 2013

A mat file is a Matlab binary file with extension .mat. For example:

A=[1 2;3 4];
B=10;
C='word'
save filename A B C   % save the variables A,B and C in a file filename.mat
load filename ; % load your data A,B and C from filename.mat

0 Comments

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

Contact us