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

Thread Subject:
format shortE

Subject: format shortE

From: Shaun Hurley

Date: 22 Sep, 2011 18:06:10

Message: 1 of 2

I am trying to get my final output (which is an array) to be in scientific notation. No matter what format I use, it does not change the formatting of may array. Any ideas whats going on? Thanks in advance!

Shaun

Subject: format shortE

From: Steven_Lord

Date: 23 Sep, 2011 13:45:51

Message: 2 of 2



"Shaun Hurley" <jumpinghurley@yahoo.com> wrote in message
news:j5ftei$iv2$1@newscl01ah.mathworks.com...
> I am trying to get my final output (which is an array) to be in scientific
> notation. No matter what format I use, it does not change the formatting
> of may array. Any ideas whats going on? Thanks in advance!

The FORMAT function does NOT change the data in the array; it simply changes
how the array is displayed _in the Command Window_. If you're looking to
change how the data looks in other contexts (like a uicontrol or when
written to a file) use SPRINTF/FPRINTF. If you're looking to change how it's
stored in the actual array, that's very different and you're probably
looking for Fixed-Point Toolbox.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us