Loading .mat file content into base workspace by calling load function within a gui callback function

1 回表示 (過去 30 日間)
I can't load the data I want into base workspace (although they appear perfectly in the command window) for furthe use. I use Load function within a gui callback function and I think this what makes loading process difficult. To be more specific, I need to load variables tmp and specs into base workspace, any ideas? Please see the attached screenshot for more details. Many thanks
  4 件のコメント
Mus'ab Ahmad
Mus'ab Ahmad 2016 年 3 月 23 日
Thanks very much Stephen, I could not find something organised like what you provided to explain this topic. Much appreciated.

サインインしてコメントする。

採用された回答

Jan
Jan 2016 年 3 月 22 日
編集済み: Jan 2016 年 3 月 23 日
I'm confused about the "import filename.*" .
It is ugly and you find many threads - hundreds - about suggestions to avoid the remote creation of variables. Such methods impede the debugging drastically. So don't do this!
But if you are willing to apply this:
assignin('base', 'Act_specs', tmp);
assignin('base', 'specs', tmp.Act_Specs);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCode Execution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by