Re: Matrix in IDL [message #77933] |
Mon, 17 October 2011 10:45 |
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  |
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  |
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
|
|
|