disp format for strings?
조회 수: 2 (최근 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!