Re: fprintf: number of digits for exponent



Jérôme wrote:
>
>
> Jos wrote:
>
>> fprintf(regexprep(sprintf('%8.2E',a),'E-0','E-'))
>
> or the STRREP solution :
>
> fprintf(strrep(sprintf('%8.2E',a),'E-0','E-'))
>
> Jérôme

Thanks. The strrep solution works fine. In addition I had to replace
'E+0' by 'E+'.

Thomas
.