how to generate periodic signals in scilab

Started by lakshminani September 27, 2007
Hi,

 i am lakshmi, I am working in scilab, I am unable to generate periodic
signals in scilab.

Any body please tell me how to generate the periodic signals like (square,
ramp signals )in  scilab.


with regards,

Lakshmi.


"lakshminani" <venkata.siripurapu@honeywell.com> a &#2013265929;crit dans le message
de 
news: q8GdnUSXJoIDPWbbnZ2dnUVZ_o-mnZ2d@giganews.com...
> Any body please tell me how to generate the periodic signals like (square, > ramp signals )in scilab.
As a starting point : Square : for i=1:npoints; if(modulo(i,period) > period/2) then signal(i)=1; else signal(i)=-1;end; Ramp : for i=1:npoints; signal(i)=modulo(i,period); end; Cheers, Robert