zigzag path for an area

how to create zigzag line in a rectangular area......zigzag line should be like square wave form can anyone knows please help me.......please

回答 (1 件)

KSSV
KSSV 2016 年 10 月 26 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

タグ

質問済み:

2016 年 10 月 26 日

回答済み:

2016 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by