How to extract data from .mat files

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 commentaires

Rik
Rik le 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 le 3 Sep 2020
Could you help me about it ?
Adam Danz
Adam Danz le 3 Sep 2020
There are lots of expamples and descriptions here

Connectez-vous pour commenter.

Réponses (1)

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

2 commentaires

You should use this instead:
S=load('XYZ.mat');
FG
FG le 6 Sep 2020
Thnx all..

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Produits

Version

R2020a

Question posée :

FG
le 3 Sep 2020

Commenté :

FG
le 6 Sep 2020

Community Treasure Hunt

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

Start Hunting!

Translated by