Loading and accessing the variables, fields and its data into the script from a mat file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kumar
am 29 Okt. 2020
Beantwortet: Ameer Hamza
am 29 Okt. 2020
Hello All,
I would like to load the mat file and access the fields ( multiple fields) and its data into a script.
Can you please guide me?
Thanks
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 29 Okt. 2020
This page shows how to access data in a strcut array: https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-structure-array.html
For example, you can access the "Type" variable like this
XETK.Y(1).Type; % acess value of type in first row
XETK.Y(2).Type; % acess value of type in second row
..
..
XETK.Y(end).Type; % acess value of type in last row
0 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!