How to set input value from GUI into global variable
2 次查看(过去 30 天)
显示 更早的评论
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

%
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call C++ from MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!