[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suppressing certain output
From: |
RONALD FRANCIS |
Subject: |
Suppressing certain output |
Date: |
Mon, 15 Dec 2008 08:44:46 -0500 |
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
- Suppressing certain output,
RONALD FRANCIS <=