problem to use compose
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
shamal
am 29 Mai 2025
Bearbeitet: Walter Roberson
am 30 Mai 2025
load('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?
0 Kommentare
Akzeptierte Antwort
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));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu System Composer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!