Filter löschen
Filter löschen

Implement a square wave in matlab

4 Ansichten (letzte 30 Tage)
sanane beadam
sanane beadam am 8 Mär. 2016
Bearbeitet: Explorer am 8 Mär. 2016
hello friends,i need help and i havent any idea what i have to do thats why someone can help me

Antworten (1)

Explorer
Explorer am 8 Mär. 2016
Bearbeitet: Explorer am 8 Mär. 2016
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])

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by