Borrar filtros
Borrar filtros

Generate square wave starting from 0

7 visualizaciones (últimos 30 días)
shariq khan
shariq khan el 10 de Dic. de 2018
Comentada: Walter Roberson el 12 de Dic. de 2018
I want to make square wave with function square which starts from 0 and not with amplitude

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Dic. de 2018
[zeroes(1,M), ones(1,N)] repeated as necessary .
  2 comentarios
shariq khan
shariq khan el 11 de Dic. de 2018
using function square?
Walter Roberson
Walter Roberson el 12 de Dic. de 2018
t = 0:.0001:.0625;
y = 1 - square(2*pi*30*t);
plot(t,y)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by