Re: [Scilab-users] How to replace Matlab stairs function in Scilab

2015-09-24 Thread Serge Steer
Thers is no stair function but you can obtain this king of plot using the polyline_properties: clf;plot(sin(linspace(0,2*%pi,40))) e=gce();//plot creates an entity of type compound p=e.children;//the handle on the polyline p.polyline_style=2; //set stair case mode Serge Steer Le 24/09/2015

Re: [Scilab-users] How to replace Matlab stairs function in Scilab

2015-09-24 Thread Samuel Gougeon
Hello, Le 24/09/2015 05:11, Robert McLean MD PhD a écrit : So here is what I did for the stairs graph: .../... function stairs(x,y) n=length(x); x_indices=int((1:2*n-1)/2)+1; // gives 1,2,2,3,3,...,2n-1,2n-1 x_ss=x(x_indices); // the stair step graph's x values

Re: [Scilab-users] How to replace Matlab stairs function in Scilab

2015-09-23 Thread Robert McLean MD PhD
So here is what I did for the stairs graph: // we are going to make a stair step graphing program in scilab // o--o // o--o| | // || o---o // oo // // We take the vector (x1,x2,x3,...,xn) and (y1,y2,y3,...,yn) and instead of //