Plot rectangular pulse as a function of 2 variables
3 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1475006/image.png)
T_b or the symbol period is not given, f is the frequency, this is supposed to be a fourier transform. How do I plot the rectangular pulse of (f*T_b), I get errors saying rectangularPulse funciton only accepts inputs of a single variable.
1 件のコメント
回答 (1 件)
Pooja Kumari
2023 年 9 月 27 日
Dear Grant,
It is my understanding that you are facing issue with plotting rectangular pulse as a function of two variables i.e.”T_b” and “f”. “T_b” is the symbol period, and “f” is the frequency.
The rectangular Pulse function is used to generate a rectangular pulse with a duration of “T_b” and an amplitude of 1. The function is applied to the time vector t, resulting in the rectangular pulse waveform. You can take Fourier transform of rectangular pulse using “fft” function. You can refer to the documentation of Fourier transform:
You can refer to the below documentation for more information on “rectpulse” function:
Regards,
Pooja Kumari
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Switches and Breakers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!