How to pass values from GUI to workspace
2 ビュー (過去 30 日間)
古いコメントを表示
How to pass values from GUI to workspace
0 件のコメント
回答 (2 件)
Jan
2012 年 12 月 4 日
To which workspace? Each function has its own one. Do you mean the base-workspace, which is available in the command window? Then:
assignin('base', 'A', 123 + 17)
Please note, that using such remote-creation of variables frequently will make it much harder to debug your program. Imagine you have tweo different GUIs which assign the same variable. Then it is impossible to find the function, which has applied the last changes.
0 件のコメント
参考
カテゴリ
Help Center および File 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!