Hello,
I have a mat file who contain a structure a, the structure a contains other structures, i need to load a structure b in the structure a without loading all the structure a.
load ('filemat') ---> a, a is the result of loaing the matfile
i need to load a.b in the workspace without loading all the structure a,
Thank you for your return.

回答 (2 件)

Kaashyap Pappu
Kaashyap Pappu 2019 年 11 月 25 日

0 投票

A similar issue has been addressed here. The issue and limitation are documented and elaborated upon, and a workaround is also provided.
Alternatively, you can try to load the structure into work space and clear the other structures using the following syntax:
load('filename.mat')
%Extract required structure
reqStruct = a.b;
% Clear the overall structure of structures
clear a
Hope this helps!
Mohamed BOUALBANI
Mohamed BOUALBANI 2019 年 11 月 25 日

0 投票

Thank you for your response, the link you sent me explain that there is no way to do what i wanted.
Thank you.

カテゴリ

ヘルプ センター および File Exchange で Structures についてさらに検索

質問済み:

2019 年 11 月 22 日

回答済み:

2019 年 11 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by