Re: Question on number formatting
- From: OA <oakcin@xxxxxxxxxxxxxx>
- Date: Wed, 10 Aug 2005 13:58:58 -0400
Steve Amphlett wrote:
>
>
> OA wrote:
>>
>>
>> I've got a matrix I'm trying to return data from and whenever I
> do
>> something like:
>>
>> mymatrix(1,:)
>>
>> I get:
>>
>> ans =
>> 1.0e+003 *
>>
>> [data in columns]
>>
>> Could someone tell me how I would get the data to appear in
their
>> original format rather than be divided by 1000? I've tried a
>> variety
>> of format('long'), etc. commands but these only appear to
effect
>> the
>> display after the decimal point.
>>
>> Can anyone tell me which format I'm looking for, please?
>
> You're going to need to supply a format to fprintf if you care
> about
> the visuals. For example:
>
> fprintf('%f\n',mymatrix(1,:))
>
> Otherwise your stuck with the default (which is a bit like %g)
Thanks for your reply, I knew there was something I was missing.
I'll give this a go.
.
- Follow-Ups:
- Re: Question on number formatting
- From: OA
- Re: Question on number formatting
- References:
- Question on number formatting
- From: OA
- Re: Question on number formatting
- From: Steve Amphlett
- Question on number formatting
- Prev by Date: Re: Question on number formatting
- Next by Date: updating weights in NN
- Previous by thread: Re: Question on number formatting
- Next by thread: Re: Question on number formatting
- Index(es):
Relevant Pages
|