フィルターのクリア

Root raised cosine pulse

33 ビュー (過去 30 日間)
Sara Nasir
Sara Nasir 2020 年 8 月 21 日
コメント済み: Walter Roberson 2020 年 8 月 22 日
B=0.5; %Beta value
Ts = 0.01; %Sampling interval
N=2000; %Number of samples
t=-20:Ts:(N-1)*Ts;
%Formula
pt_RootRaisedCosine = ((sin(pi*t.*(1-B)) + 4*B*t.*cos(pi*t*(1+B))) ./ (pi*t.*(1-(4*B*t).^2)));
plot(pt_RootRaisedCosine);
Hello,
I am trying to plot root raised cosine pulse for Beta equal to 0.5. But the issue in graph is, there is a little space. I am unable to figure out. Can someone help!

採用された回答

Walter Roberson
Walter Roberson 2020 年 8 月 21 日
t.*(1-(4*B*t).^2) is 0 at indices 1951 2001 2051 . For one of those it is because t == 0, and for the other two it is because 4*B*t == 1 so the 1 minus equals 0.
  3 件のコメント
Sara Nasir
Sara Nasir 2020 年 8 月 22 日
t = [-N*T:Ts:N*T] + 10^(-8); % in order to avoid division by zero problems at t=0.
This is what i did to not get that space
Walter Roberson
Walter Roberson 2020 年 8 月 22 日
inf points are also not plotted, though.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by