App Designer Edit Field precision
古いコメントを表示
I have Outputs in App Designer as numeric edit fields (b0,b1,b2). These display calculated values and cause they are output values I don’t want them to be changed by the user. So I disabled the `editable` option, but that isn’t quite satisfactory, cause I like the behaviour of the editable option.
To be more precise, when you click on an editable field, you get a higher decimal precision. Like in the pictures, where I made b1 editable.


What I want to archive is an field, which shows me more decimal places, when I click it, but doesn’t accept any input.
Hopefully it’s understandable what I’m looking for and someone knows a way to do this.
採用された回答
その他の回答 (1 件)
Simon Allosserie
2021 年 9 月 24 日
編集済み: Simon Allosserie
2021 年 9 月 24 日
When you select the field, you can edit the ValueDisplayFormat code. Now it is apparently in some kind of scientific notation mode. If you want to have it in a float notation, try e.g.
%0.10f
there, which means your numbers will show as a float with 0 digits before the dot and 10 digits behind the dot. You can customize this as you wish.
2 件のコメント
Andre Marcelino
2021 年 9 月 24 日
Simon Allosserie
2021 年 9 月 24 日
Then I don't know if Matlab supports such behavior.
カテゴリ
ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!