How to show mat file to struct ?

31 ビュー (過去 30 日間)
Chidiebere Ike
Chidiebere Ike 2019 年 4 月 26 日
コメント済み: Star Strider 2019 年 4 月 27 日
Hello, I wish to know how to show data in .mat file in the form struct and save it back to mat file format?

採用された回答

Star Strider
Star Strider 2019 年 4 月 26 日
If you load the .mat file to a variable, it will automatically be a structure:
Data = load('yourMatFile.mat');
You can then access the variables in the file as:
x = Data.Variable1;
y = Data.Variable2;
and so forth, depending on the variable names in the .mat file.
See the documentation section on: Load List of Variables Into Structure Array (link) for an extended discussion.
  4 件のコメント
Chidiebere Ike
Chidiebere Ike 2019 年 4 月 27 日
Thanks, I appreciate
Star Strider
Star Strider 2019 年 4 月 27 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by