problem to use compose

3 Ansichten (letzte 30 Tage)
shamal
shamal am 29 Mai 2025
Bearbeitet: Walter Roberson am 30 Mai 2025
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?

Akzeptierte Antwort

the cyclist
the cyclist am 29 Mai 2025
Bearbeitet: the cyclist am 29 Mai 2025
It's because your values are actually 0.7937 * 1.e-5.
Try ..
load('matlab_bb.mat')
bbb=char(compose("%% %9.9f",bb));

Weitere Antworten (0)

Kategorien

Mehr zu System Composer finden Sie in Help Center und File Exchange

Produkte


Version

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by