フィルターのクリア

How to display a value number in the figure

11 ビュー (過去 30 日間)
Claire Redfield
Claire Redfield 2013 年 2 月 19 日
Hello guys, I have made a GUI. I would like to link a function to one of the buttons so that when clicking on it a picture will show the result(a variable x ).
Could you tell me how to do this thing similar to imshow(x), but x is a 1 by 1 number pls?

採用された回答

Titus Edelhofer
Titus Edelhofer 2013 年 2 月 19 日
Hi,
you can use a text uicontrol. So in GUIDE you add a text, and in the callback of your button you have something like
x = 42;
set(handles.text1, 'string', ['Result: ' num2str(x)]);
Titus

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by