フィルターのクリア

New TO Matlab - How To Clear Contents Of Edit Field (Numeric) in App Designer

22 ビュー (過去 30 日間)
John hope
John hope 2018 年 6 月 30 日
編集済み: Stephen23 2018 年 6 月 30 日
Hello community
My apologies in advance if this is considered a silly question but i am neither a programmer or have experience in Matlab.
I am trying to teach myself Matlab by creating a GUI using the App designer.
I have 2 x Edit Field (Numeric) boxs called Input and Output a Button called Convert which when pressed copies the values from Input and displays to Output. I have a secnd button called Reset which is meant to clear the contents of the input and output fields but I do not know how to clear them - can anyone help?
Below is a picture of my GUI:-
This is the code I have so far:-
Any ideas?
Thank you
  3 件のコメント
John hope
John hope 2018 年 6 月 30 日
Hi Jens
I just wanted to reset the value to 0 and I managed to do this as you recommended which was setting the Value property back to 0, so thank you.
Can I ask where in the help guide can I find all the different properties for the app command, for example:-
app.input.Value
Where input is the name of my text box. Value relates to the actual value in the text box.
But instead of Value I can also have ValueDisplayFormat, where can I find the complete list of what I can have i.e. app.input.XXXX
Does this makes sense?
Stephen23
Stephen23 2018 年 6 月 30 日
編集済み: Stephen23 2018 年 6 月 30 日
Open the uieditfield help. Scroll down to the bottom. Under the title "Properties" are two links to the pages that lists all of the properties of the edit field and numeric edit field. When I use [major internet search engine] to search for "MATLAB App designer edit field" those pages were the first results returned, so they are quite easy to find.
All MATLAB objects are documented like that: one page with explanation, syntaxes, example, etc, and a link to page/s which lists all object properties.

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

回答 (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