problem to use compose

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 个)

类别

帮助中心File Exchange 中查找有关 System Composer 的更多信息

产品

版本

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by