How to show mat file to struct ?

26 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by