Suppressing certain output

RONALD FRANCIS arawak1 at yahoo.com
Mon Dec 15 07:44:46 CST 2008


How do I turn off the listing of N before the graph output,  In Scilab  
there is a command "lines(0)" which will suppress this.  This is the  
script in question.
------------------------------------------
function [S] = walk(N);
clf;
t = (0:1:N);
S = [0; cumsum(2*(rand(N,1)>0.5)-1)];
M = max(abs(S))+1;
plot(t,S);
axis([0 N -M M]);
endfunction
-------------------------------------------
It works as expected but it also puts out a long listing of N in  
response to walk(N).

Thank You




More information about the Help-octave mailing list