One approach —
expstr = @(x) [x(:).*10.^ceil(-log10(abs(x(:)+(x==0)))) floor(log10(abs(x(:)+(x==0))))]; % Updated: 2021 05 04
fid1 = 1;
Frequence(:,1) = 8.90000000E+007;
fprintf(fid1,'%.8fe%+04d', expstr(Frequence(:,1)))
As requested.
,
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!