zigzag path for an area

2 visualizzazioni (ultimi 30 giorni)
udhaya ram  mohan
udhaya ram mohan il 26 Ott 2016
Risposto: KSSV il 26 Ott 2016
how to create zigzag line in a rectangular area......zigzag line should be like square wave form can anyone knows please help me.......please

Risposte (1)

KSSV
KSSV il 26 Ott 2016
t=0:.001:1;
f=10;
sq=1000*0.5*(square(2*pi*f*t)+1);
plot(t,sq)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by