logo       

Re: clear all and gnuplot (was Weird error with gnuplot: 'invalid command'): msg#00018

gnu.octave.bugs

Subject: Re: clear all and gnuplot (was Weird error with gnuplot: 'invalid command')

Alexander Klink wrote:
...
clear all;
line (left from the Matlab code I am porting from, if I understand
help clear correctly, this might not do the same thing in Octave).
...

That may be obvious, but here it is anyway:


octave:1> whos

*** dynamically linked functions:

Prot Name Size Bytes Class
==== ==== ==== ===== =====
r-- __gnuplot_init__ -1x-1 0 dynamically-linked
function
r-- dispatch -1x-1 0 dynamically-linked
function

Total is 2 elements using 0 bytes

*** local user variables:

Prot Name Size Bytes Class
==== ==== ==== ===== =====
rw- __nargin__ 1x1 8 scalar

Total is 1 element using 8 bytes

octave:2> clear
octave:3> whos

*** dynamically linked functions:

Prot Name Size Bytes Class
==== ==== ==== ===== =====
r-- __gnuplot_init__ -1x-1 0 dynamically-linked
function
r-- dispatch -1x-1 0 dynamically-linked
function

Total is 2 elements using 0 bytes

*** local user variables:

Prot Name Size Bytes Class
==== ==== ==== ===== =====
rw- __nargin__ 1x1 8 scalar

Total is 1 element using 8 bytes

(looks fine)

octave:4> clear all
octave:5> whos

*** dynamically linked functions:

Prot Name Size Bytes Class
==== ==== ==== ===== =====
r-- dispatch -1x-1 0 dynamically-linked function

Total is 1 element using 0 bytes

*** local user variables:

Prot Name Size Bytes Class
==== ==== ==== ===== =====
rw- __nargin__ 1x1 8 scalar

Total is 1 element using 8 bytes

(does not look good, __gnuplot_init__ has gone, I guess octave thinks it is a
user defined var?)

Sincerely,
Dmitri.
--



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise