help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave saving matrix of numbers in scientific format


From: Sergei Steshenko
Subject: Re: Octave saving matrix of numbers in scientific format
Date: Sat, 10 Nov 2012 10:20:48 -0800 (PST)





----- Original Message -----
> From: Benjamin Abbott <address@hidden>
> To: pkohvaei <address@hidden>
> Cc: "address@hidden" <address@hidden>
> Sent: Saturday, November 10, 2012 7:25 PM
> Subject: Re: Octave saving matrix of numbers in scientific format
> 
> On Nov 10, 2012, at 8:54 AM, pkohvaei <address@hidden> wrote:
> 
>>  Hey all,
>> 
>>  I save my matix of numbers with this command:
>>  save ("-ascii", file_name, matrix_name);
>>  and what relies in the file shows as:
>>  8.45093460e+001 3.16800000e+001 -1.98000000e+000
>>  8.45300900e+001 3.16800000e+001 -1.98000000e+000
>>  ...
>>  how could I make a conversion to float format?
> 
> I'm not sure I understand what you want.  Dud you try the load() command?
> 
> Ben
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>

I think the OP wants something like

123.456789

output. And I think OP wants to use the data outside of Octave, and that other 
application probably expects the fixed point format.

Anyway, being in the OP's shoes I wouldn't even ask - a couple of nested loops 
and custom format supplied to 'fprintf' trivially solve the problem.

Regards,
  Sergei.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]