MATLAB Answers

How to extract data from .mat files

9 views (last 30 days)
FG
FG on 3 Sep 2020
Commented: FG on 6 Sep 2020
Hi all.. I have simulated an xls file and ran it through the editor. As a result I have many cases consisting of 200 .mat files. I want to extract a specific data (e.g. 5th harmonic voltage) from each case with the help of the editor. Could anyone help me on doing it ? Thnx

  3 Comments

Rik
Rik on 3 Sep 2020
Your data description is a bit confusing, but if you store the output of load to a variable you should be able to do this with a simple loop.
FG
FG on 3 Sep 2020
Could you help me about it ?

Sign in to comment.

Answers (1)

Nikita Agrawal
Nikita Agrawal on 3 Sep 2020
You could use
load('XYZ.mat')
Does this help?

  2 Comments

Rik
Rik on 3 Sep 2020
You should use this instead:
S=load('XYZ.mat');

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!