Implement a square wave in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
hello friends,i need help and i havent any idea what i have to do thats why someone can help me
0 件のコメント
回答 (1 件)
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])
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!