How to display both values and text as output
101 次查看(过去 30 天)
显示 更早的评论
Hey MATLAB users,
I'm trying to show a numerical value with its unit in the command window. For example, 500 grams or 4.7k Ohms. Any suggestions?
Quick replies are much appreciated, thanks.
1 个评论
Stephen23
2016-2-12
How are the units stored? Do you have a separate string or cell array of strings?
另请参阅
类别
在 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!