octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave gset, graw


From: Volker Kuhlmann
Subject: Re: octave gset, graw
Date: Sat, 25 Feb 2006 14:09:33 +1300

> Will putting a script file "graw.m" in your personal script directory that 
> does
> 
> function graw(varargin)
> 
> __graw(varargin)__
> 
> help any?

(Assuming you meant __gnuplot_raw__(varargin))

No, gset/graw are internal functions with a special syntax that isn't
user-definable. Anyway, a gset.m in ./ isn't picked up.

This works:

    grawcmd='__gnuplot_raw__';
    if (~ exist(grawcmd)); grawcmd='graw'; end

        eval ([grawcmd '(str)']);

I could put that kind of thing in a wrapper function. What would be the
performance penalty?

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.



reply via email to

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