[Top][All Lists]

[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:44:41 +0200
User-agent: KMail/1.12.4 (Linux/; KDE/4.3.5; x86_64; ; )

Am Montag, 2. August 2010 23:34:39 schrieb PaoloPiace:
> >> Do you want to load the file into another program?
> Exactly. I need to assure that another parser finds S(1,1) as matrix type.
> Hence, I would need Octave to save S(1,N) always as matrix even when N=1.
> Regards.
Maybe not a nice solution, but what if you simply create the file without the 
save command and with some fprintf commands for the 1x1 case it will look 
simple enough:

# name: b
# type: matrix
# rows: 1
# columns: 1

- mh

reply via email to

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