while converting any number to string with num2str() floating numbers aren't preserved.

num=[ 37.864457850610869, 32.483394006948181; 37.855287875969367;32.455769007122299]
num=num2str(num)
num=[37.8645, 32.4834;37.8553, 32.4558] %string
%how can I preserve whole or particular floating numbers while converting to string

 採用された回答

Jos (10584)
Jos (10584) 2013 年 11 月 12 日

0 投票

If you carefully read the help of num2str, you will see that you can use a second argument …

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

タグ

質問済み:

2013 年 11 月 12 日

回答済み:

2013 年 11 月 12 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by