comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Matrix in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Matrix in IDL [message #77933] Mon, 17 October 2011 10:45
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
Did you expect anything else? If you did only what is written below
you saved an array that had only zeroes, so that is what you got back
from the file.

On Oct 17, 3:36 pm, Waleria <waleriantu...@gmail.com> wrote:
> On 17 out, 11:08, Vincent Sarago <vincent.sar...@orange.fr> wrote:
>
>> you can just use the 'save' procedure
>
>> mat=dblarr(2, 2)
>
>> save, mat, filename = '~/myMat.sav'
>
>> after to re-use it in idl you do :
>
>> restore, '~/myMat.sav'
>
>> and the 'mat' variable will be restored.
>
>> vincent
>
> Hi,
>
> I did it but this matrix with all zero values.
>
> Look:
>
> % Compiled module: CRIA_MAT.
>       0.00000000      0.00000000
>       0.00000000      0.00000000
> MAT             DOUBLE    = Array[2, 2]
Re: Matrix in IDL [message #77934 is a reply to message #77933] Mon, 17 October 2011 10:36 Go to previous message
Waleria is currently offline  Waleria
Messages: 6
Registered: October 2011
Junior Member
On 17 out, 11:08, Vincent Sarago <vincent.sar...@orange.fr> wrote:
> you can just use the 'save' procedure
>
> mat=dblarr(2, 2)
>
> save, mat, filename = '~/myMat.sav'
>
> after to re-use it in idl you do :
>
> restore, '~/myMat.sav'
>
> and the 'mat' variable will be restored.
>
> vincent


Hi,

I did it but this matrix with all zero values.

Look:

% Compiled module: CRIA_MAT.
0.00000000 0.00000000
0.00000000 0.00000000
MAT DOUBLE = Array[2, 2]
Re: Matrix in IDL [message #77937 is a reply to message #77934] Mon, 17 October 2011 06:08 Go to previous message
Vincent Sarago is currently offline  Vincent Sarago
Messages: 34
Registered: September 2011
Member
you can just use the 'save' procedure


mat=dblarr(2, 2)

save, mat, filename = '~/myMat.sav'



after to re-use it in idl you do :

restore, '~/myMat.sav'

and the 'mat' variable will be restored.


vincent
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: REFORM: new subscripts must not change the number elements in array
Next Topic: Re: Return array from a pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:23:09 PDT 2025

Total time taken to generate the page: 0.00373 seconds