Pass variables's name and their values from gui to workspace

2 ビュー (過去 30 日間)
Mohammad
Mohammad 2012 年 2 月 24 日
Hello : how can i pass variables's name and their values from gui to workspace?. i want to run a gui progam and give the result in the workspace and work with them in the commands window. could you please help me? Thank you .

採用された回答

Arthur
Arthur 2012 年 2 月 24 日
Use the function assignin, and store your variables on the 'base' workspace. For instance, to store variable x:
x = 1:10;
assignin('base','x',x)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by