How to set input value from GUI into global variable

2 ビュー (過去 30 日間)
Tata
Tata 2016 年 1 月 26 日
回答済み: Tata 2016 年 1 月 26 日
I am trying to create a configuration panel containing some configurable parameters. The configuration value shall be used in other Matlab functions. But,when I enter the variable name ("Value")to the command window, Matlab notifies the variable is not defined.
function edit1_Callback(hObject, eventdata, handles)
Value = get(handles.edit1,'String');
Value = str2double(Value);
Could you please give me your advise? Many thanks
%

採用された回答

Tata
Tata 2016 年 1 月 26 日
You can use "uisave" command to save the variable to .mat file. Load the .mat file to use the variable.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by