MATLAB: How can you convert a scientific number to decimal

convert numbersscientific

I have an equation in matlab that gave me this result:
4.1084e+001 -9.6671e+002i
how can I convert it to a decimal number?

Best Answer

a=4.1084e+001-9.6671e+002i
out=sprintf('%.2f+%.2fi',real(a),imag(a));
out=strrep(out,'+-','-')
Related Question