Help with load -ascii

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with load -ascii

Rik-4
Can someone with access to Matlab try

-- Code --
load ('big.txt', '-ascii')
big
-- End Code --

The question is whether numbers which are too large to represent, such as
1e1000, are converted to realmax() or to Inf.

The file big.txt is attached.

Cheers,
Rik


big.txt (28 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Help with load -ascii

Michele Ginesi
On 08/31/2017 10:37 PM, Rik wrote:

> Can someone with access to Matlab try
>
> -- Code --
> load ('big.txt', '-ascii')
> big
> -- End Code --
>
> The question is whether numbers which are too large to represent, such as
> 1e1000, are converted to realmax() or to Inf.
>
> The file big.txt is attached.
>
> Cheers,
> Rik
>

On Matlab R2017a

load ('big.txt','-ascii')
big

big =

        Inf      -Inf    2.5000


Cheers,

--
Michele Ginesi