How to show mat file to struct ?
49 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chidiebere Ike
am 26 Apr. 2019
Kommentiert: Star Strider
am 27 Apr. 2019
Hello, I wish to know how to show data in .mat file in the form struct and save it back to mat file format?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 26 Apr. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!