help-octave
[Top][All Lists]
Advanced

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

Re: plotting in grace


From: asha g
Subject: Re: plotting in grace
Date: Thu, 4 Oct 2012 21:33:30 +0800 (SGT)


 




> 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




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


Sorry for being unclear - Now I have got it to save as columns. But the next step is to get it to plot on grace.
Thanks
AG

reply via email to

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