MATLAB Answers

Variables become undefined although they are saved in Workspace

9 ビュー (過去 30 日間)
Mus'ab Ahmad
Mus'ab Ahmad 2016 年 1 月 13 日
コメント済み: Adam 2016 年 1 月 13 日
I read XML file using GUI pushbutton, extract some data, and do some manipulations for them. The thing is although I save the required variables to workspace (using assignin), I can't use them outside the pushbutton callback function for further manipulation because matlab tells me 'undefined variables'! any suggestions? Thanks
  6 件のコメント
Mus'ab Ahmad
Mus'ab Ahmad 2016 年 1 月 13 日
Hope it is attached now



Ilham Hardy
Ilham Hardy 2016 年 1 月 13 日
Did you also define the workspace location?
  4 件のコメント
Adam 2016 年 1 月 13 日
If you just want to share data between callbacks then you shouldn't go through the base workspace at all, but I guess it works for you for now.


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by