help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plotting in grace


From: Doug Stewart
Subject: Re: plotting in grace
Date: Thu, 4 Oct 2012 08:22:40 -0400



On Thu, Oct 4, 2012 at 7:18 AM, asha g <address@hidden> wrote:


> Just tried dimwrite  -mat-ascii catwalkascii X y
> Did not save either.
that's not how dlmwrite works, you should read that function's help before you try to use it.

I suppose it will be
dimwrite(file,M,r,c)

So in my example should I do :

dimwrite(catwalkascii,catwalk,N,2) where N = 11 the no. of rows and c = 2, no. of columns.

Not sure if this is what it is supposed to be ?

Help appreciated.
AG





_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


You were very unclear about what you wanted.


If you want the data in rows then the data will look like

1 2 3 4 5 6
30 40 50 60 70 80
if you want it in columns then it will be
1
2
3
4
5
6
30
40
50
60
70
80


but i you want the y beside the x, then you want an array or matrix style

1 30
2 40
etc


to do this you put them together before you save them

q=[ x   y]     or q=[ x'   y']   depending on what x and y are.

then save q to a file.



HTH


--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

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