Loading and accessing the variables, fields and its data into the script from a mat file

조회 수: 1 (최근 30일)
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

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 29일
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개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by