problem to use compose

3 visualizaciones (últimos 30 días)
shamal
shamal el 29 de Mayo de 2025
Editada: Walter Roberson el 30 de Mayo de 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?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre System Composer en Help Center y File Exchange.

Productos


Versión

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by