Curve fitting square wave

6 visualizaciones (últimos 30 días)
Yigit
Yigit el 22 de Nov. de 2011
Hi,
When I run ; i=0; t0 = clock; while etime(clock, t0) < 10 disp(clock); pwm(i)=0; i = i +1; tic while toc<secs end pwm(i)=1; i = i +1; tic while toc<secs end end plot(i,pwm(i);
Graph has only one component and it shows very limited portion of the entire signal. I would like to generate a square pwm wave.
i=1 pwm=1 i=2 pwm=0 i=3 pwm=1 . . .
And when I plot pwm(i), I want to see the square wave.
Thanks.

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by