Implement a square wave in matlab

조회 수: 3 (최근 30일)
sanane beadam
sanane beadam 2016년 3월 8일
편집: Explorer 2016년 3월 8일
hello friends,i need help and i havent any idea what i have to do thats why someone can help me

답변 (1개)

Explorer
Explorer 2016년 3월 8일
편집: Explorer 2016년 3월 8일
The square wave with amplitude 1, fundamental frequency 10 pi radian per second (5 Hz) and phase of 5 pi can be generated by using the following commands:
A=1;
fo=10*pi;
w=5*pi;
t=0:0.001:1;
sq=A*square(fo*t + w);
plot (t, sq)
axis ([0 1 -2 2])

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by