Allin Cottrell schrieb:
On Thu, 25 Feb 2010, Sven Schreiber wrote:
> Allin Cottrell schrieb:
>> On Wed, 24 Feb 2010, Sven Schreiber wrote:
>>
>>> Allin Cottrell schrieb:
>>>> Now we need a nice example of the use of Octave to illustrate the
>>>> yet-to-be-written entry for the User's Guide. Any suggestions?
>>> Well as Jack mentioned, maybe (cross-) spectral stuff would be a good
>>> area because of complex numbers. For example the "cohesion" measure
by
>>> Croux/Forni/Reichlin?
>> Thanks for the suggestion. I was kinda hoping that somebody who
>> knows Octave better than I might actually contribute an example
>> for the manual. The only things that I know how to do in Octave
>> are boring stuff that you could do just as well in gretl.
> The Matlab code is on
www.economia.unimore.it/forni_mario/matlab.htm --
> I could take a look next week whether that also works on octave and make
> a "foreign" example. Actually to have the standard coherence available
> in gretl via this wrapper would be nice. (cohesion would be nice, too,
> of course, but coherence is standard spectral stuff.)
Thanks, that was enought of a hint to get me started. Could anyone
check that the following is correct?
Very cool! I will check soon if nobody else comes first.
...
mwrite(xy, "(a)dotdir/xy.mat")
OT: I know about the return value of mwrite(), but this "feels" more
like a command than a function. Or to put it differently: if I
understand correctly you recently introduced more sophisticated error
handling ($error and stuff). I wonder whether a mish-mash is being born
right now, sometimes getting error codes from function return values,
and sometimes from accessor variables?
colnames(h, "coherence")
OT again: another function used like a command -- how many are there?
(And I thought I knew gretl script by now...)
gnuplot 1 --time --with-lines --matrix=h --output=display
final OT comment: see how great it is to be able to plot matrix columns
;-) I also find the new (?) display option very useful.
thanks,
sven