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 件のコメント

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

サインインしてコメントする。

回答 (1 件)

Nikita Agrawal
Nikita Agrawal 2020 年 9 月 3 日

0 投票

You could use
load('XYZ.mat')
Does this help?

2 件のコメント

Rik
Rik 2020 年 9 月 3 日
You should use this instead:
S=load('XYZ.mat');
FG
FG 2020 年 9 月 6 日
Thnx all..

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2020a

質問済み:

FG
2020 年 9 月 3 日

コメント済み:

FG
2020 年 9 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by