Display a result + unit in GUI in ,,static text,, field
1 回表示 (過去 30 日間)
古いコメントを表示
I've wrote a porgram with a GUI and I can display a numerical result in a ,,static text,, field, but I want to be displayed an unit too. Is it possible with a ,set, command?
0 件のコメント
採用された回答
Sriram
2012 年 8 月 7 日
yes... you can!
here is an easy way to do it
%%Just Concatenate :) 100 is the value to display along with the unit
your_display = [num2str(100) 'unit'];
set (handles.text,'string',your_display)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!