[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Save a 1x1 matrix
From: |
Martin Helm |
Subject: |
Re: Save a 1x1 matrix |
Date: |
Mon, 2 Aug 2010 23:19:53 +0200 |
User-agent: |
KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; ) |
Am Montag, 2. August 2010 20:27:24 schrieb PaoloPiace:
> I'm dealing with a variable S(1:N), i.e. a matrix of real numbers that
> varies its size (N) down to 1.
>
> When saving S on file with "save" I need it to be saved as matrix 1xN,
> regardless N.
>
> Hence, when N = 1, I need S(1,1) to be saved on file as matrix 1x1 and not
> as scalar.
>
> How can I do that?
>
> Thanks!
>
What is the reason you need it that way? Do you want to load the file into
another program?
If you reload it into octave itself a scalar is automatically a 1x1 matrix.
- mh