Getting handle of static textbox in MATLAB .

10 ビュー (過去 30 日間)
yogesh jain
yogesh jain 2016 年 7 月 6 日
回答済み: Shameer Parmar 2016 年 7 月 6 日
Hello, How can I get numerical handle value of static textbox in MATLAB GUI, like we get for PBs and axes ? thank you

採用された回答

Shameer Parmar
Shameer Parmar 2016 年 7 月 6 日
static textbox have the handle name as handle.text, handle.text1, handle.text2 etc..
so first you need to check what is the name of your static text
type GUIDE command in the command window, then click on tab "open existing GUI", then select your .fig file
Once your file opened into editable mode, just double click on text box. It will open all property values of that text box.
Check for proprty TAG, what is the value. It should text or text1 or text2 etc etc..
Now let consider it is "text1"
so "get(handles.text1,'String')" will give you the value(name) of text for your static textbox.

その他の回答 (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