Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit:

Formatting exported text data

Asked by Bill on 19 Jul 2013

I need to export integers not in the form of scientific notation, for example 1.204218e+007. However matlab insists on exporting it like this when I write it to a .txt file.

dlmwrite('combine.txt',com,'delimiter',' ','precision',7,'newline','pc');

How can i fix this problem?




No products are associated with this question.

1 Answer

Answer by nl2605 on 19 Jul 2013

Precision should be followed by %f. For more info you could go to help dlmwrite or to know how to change the precision values go to help fprintf. Its given there how to use %f. Hope it helps you.



Contact us