How to use sprintf to show variables side by side?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi folks!
I'm working on a script with GUI interface and i have a edit text box where i want to display a code. This "code" will be created from the choices the user will make in the list boxes.
The problem is, i don't know how to display the variables side by side when using sprintf comannd. The code has number and letters: e.g. 121A43C456J23
Normally to display values in the boxes i use the syntax:
(set(handles.price,'string',sprintf('%g%+gi' , (final_price))))
Is there any way to do it?
Thanks
1 件のコメント
Stephen23
2018 年 11 月 26 日
"i don't know how to display the variables side by side when using sprintf comannd"
Please show us an example of exactly how you want your text to look like.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!