フィルターのクリア

linking function and GUI

1 回表示 (過去 30 日間)
rahman
rahman 2011 年 10 月 2 日
Hi all
I want to run a function by clicking a push button and display comment of that function in a text box.How can I do that?
I used set(handles.t1,'String','comment') in that function, but matlab returned error "??? Undefined variable "handles" or class "handles.t1"."

採用された回答

Walter Roberson
Walter Roberson 2011 年 10 月 2 日
handles = guidata(gcf);
Or, alternately, pass handles in to the function in the callback:
..., 'Callback', {@YourFunction,handles}, ...
and adjust the arguments of YourFunction to receive handles .

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by