help-octave
[Top][All Lists]
Advanced

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

Re: multidimensional saving


From: Juan Pablo Carbajal
Subject: Re: multidimensional saving
Date: Fri, 20 Jul 2012 15:32:26 +0200

On Fri, Jul 20, 2012 at 3:26 PM, lightman <address@hidden> wrote:
> Hi there,
>
> i've got a problem with saving or/and loading a multidimensional matrix.
> The matrix "reaction" is generated within two for-loops.
>
> octave:50> whos reaction
> Variables in the current scope:
>
>    Attr Name          Size                     Bytes  Class
>    ==== ====          ====                     =====  =====
>         reaction      1x11x6x4926            2600928  double
>
> Total is 325116 elements using 2600928 bytes
>
> I save this variable with:
>
> octave:51> save -binary reaction reaction
>
> I want to load it with
>
> reload = load("reaction");
>
> But I get this:
>
> octave:52> whos reload
> Variables in the current scope:
>
>    Attr Name        Size                     Bytes  Class
>    ==== ====        ====                     =====  =====
>         reload      1x1                    2600928  struct
>
> Total is 1 element using 2600928 bytes
>
>
> How can I load the data and have it the same size?!??!
>
> Thank You!
> lightman
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/multidimensional-saving-tp4631529.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

Hi,
When you do s = load(file), the data is stored inside an structure s.
Check the fields to see the data.
In this case, since octave can create the variable directly from the
file you saved just call
load(file)
and you will have your data in the workspace with the name you used to save it.

-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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