problem to use compose
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
shamal
il 29 Mag 2025
Modificato: Walter Roberson
il 30 Mag 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 Commenti
Risposta accettata
the cyclist
il 29 Mag 2025
Modificato: the cyclist
il 29 Mag 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su System Composer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!