|Subject:||RE: Save a 1x1 matrix|
|Date:||Mon, 2 Aug 2010 15:19:28 -0700|
Yes, it's what I have done.|
I was thinking there was a way to direct Octave to store matrix S(1,N) as matrix when N=1, not as scalar. Because it's a matrix.
But I did not want to waste more time. So I used fprintf.
> From: address@hidden
> To: address@hidden
> Subject: Re: Save a 1x1 matrix
> Date: Mon, 2 Aug 2010 23:44:41 +0200
> CC: address@hidden
> 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
|[Prev in Thread]||Current Thread||[Next in Thread]|