problem to use compose

3 ビュー (過去 30 日間)
shamal
shamal 2025 年 5 月 29 日
編集済み: Walter Roberson 2025 年 5 月 30 日
load('matlab_bb.mat')
Error using load
Unable to find file or directory 'matlab_bb.mat'.
0.7937
0.7937
0.7937
0.7937
0.7937
bbb=char(compose("%% %2.2f",bb));
'% 0.00'
'% 0.00'
'% 0.00'
'% 0.00'
'% 0.00'
'% 0.00'
'% 0.00'
'% 0.00'
why i see all zero?

採用された回答

the cyclist
the cyclist 2025 年 5 月 29 日
編集済み: the cyclist 2025 年 5 月 29 日
It's because your values are actually 0.7937 * 1.e-5.
Try ..
load('matlab_bb.mat')
bbb=char(compose("%% %9.9f",bb));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSystem Composer についてさらに検索

製品


リリース

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by