필터 지우기
필터 지우기

Hello, I tried to simulate this code in Matlab, but I couldn't and I don't know where is the problem? could anyone help me please?

조회 수: 1 (최근 30일)
close all clear all clc
Bt=10000; r=0; Rb=(2*Bt)/(1+r); t=0:0.1:10;
A=(cos(pi*Rb*t))/(1-(2*Rb*t)^2); p=Rb*A*sinc(pi*Rb*t);
plot(t,p)

채택된 답변

Mohammad Abouali
Mohammad Abouali 2014년 12월 15일
change:
A=(cos(pi*Rb*t))/(1-(2*Rb*t)^2);
to
A=(cos(pi*Rb*t))./(1-(2*Rb*t)^2);
Then change
p=Rb*A*sinc(pi*Rb*t);
to
p=Rb*A.*sinc(pi*Rb*t);
Pay attention that / was changed to ./ and * was changed to .*

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by