disp format for strings?
10 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Is there a way to get the general matlab disp format for strings? I'm looking for a way to convert a number to a string that echoes the current disp format. num2str and mat2str don't do this, and (perhaps I missed it) I can't find anything in the s/fprintf documentation that gives me that option.
Thanks for any help you can offer. Best,
Sam
0 件のコメント
採用された回答
Walter Roberson
2012 年 1 月 11 日
get(0,'Format') and analyze the returned string.
There is no printf/sprintf format specifier to say "match the current format setting"
0 件のコメント
その他の回答 (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!