how to have a correct array format
2 ビュー (過去 30 日間)
古いコメントを表示
I already set 'long g' as an array format at the variable editor preferences. However when i open the variable editor, the values for my first variable are correct, but the second variable contains values in short format. The second variable obtained after cat function. So does it relates to this? How should i change it. Thank you.
4 件のコメント
Walter Roberson
2016 年 6 月 11 日
Possibly there are only 5 or so significant decimal places in the data.
Can you save the data as a .mat, including the first variable and the second variable individually?
回答 (1 件)
Azzi Abdelmalek
2016 年 6 月 10 日
You can display your numbers with the format of your choice
a=12.123456789,
sprintf('%.6f',a)
参考
カテゴリ
Help Center および File Exchange で Numeric Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!