zigzag path for an area

6 views (last 30 days)
udhaya ram  mohan
udhaya ram mohan on 26 Oct 2016
Answered: KSSV on 26 Oct 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

Answers (1)

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

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!