how to make callback ception!!

3 ビュー (過去 30 日間)
Vaibhav
Vaibhav 2014 年 1 月 19 日
編集済み: Vaibhav 2014 年 1 月 21 日
i want to know how we can start any button with identity XYZ using some another buttons callback.
Thank you for your valuable suggestions!!

採用された回答

Image Analyst
Image Analyst 2014 年 1 月 19 日
Have the callback for XYZ call a function, myCallback, where everything is in there. Then myCallback can be called from any function at all.
function anyButton_Callback(hObject, eventdata, handles)
% Some code
myCallback(handles);
function XYZ_Callback(hObject, eventdata, handles)
% Some other code
myCallback(handles);
  1 件のコメント
Vaibhav
Vaibhav 2014 年 1 月 21 日
編集済み: Vaibhav 2014 年 1 月 21 日
Hello Image Analyst!! I am very new to matlab programming would you please help me in syntax of the function and how it is called having content:-
figure
t=uicontrol('style','text','string',' ','Position',[1 1 400 600]);
col=get(t,'foregroundcolor');
for n=1:10
set(t,'foregroundcolor',1-col,'backgroundcolor',col);
col=1-col;
pause(.3);
end
close gcf;
sorry of this lame question.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by