Wireless channel modeling: Error using plot Specify the coordinates as vectors or matrices of the same size, or as a vector and a matrix that share the same length in at least

조회 수: 90 (최근 30일)
betaTT=90; %
betaRR=90;
Ft_max=570;
Fr_max=570;
alphavT=0;
alphavR=0;
kappa=0;
Ut=45;
tau=0;
Freq_diff=0;
D=300;
Rt=40;
Fc=5.9*10^9;
C=3*10^8;
deltaT=2;
N=20;
% Conversion from degree to radian
betaT=(2*pi*betaTT)/360;
betaR=(2*pi*betaRR)/360;
alpha_0=(2*pi*Ut)/360;
lamda=0.15;
deltaR=linspace(0,2.5,200);
% CF_SB1=zeros(length(deltaT),length(deltaR));
% lambda=(Fc/C);
change_inT=40/300;
alphaT=linspace(-pi,pi,200);
% alphaT=zeros(1,length(alphaT));
for i=1:length(alphaT)
% if (alphaT(i)>-pi)&(alphaT(i)<=pi)
alphaR(i)=pi-(change_inT*sin(alphaT(i)));
end
for b=1:length(deltaR);
% for c=1:length(deltaT);
O=deltaT*cos(alphaT-betaT);
Q=deltaR(b).*cos(alphaR(i)-(betaR));
CF_SB1(b)=(1/(2*pi*besseli(0,kappa)))*trapz(alphaT,exp(sqrt(-1)*2*pi)*(Q+O));
end
figure(1)
plot(deltaR,real(CF_SB1),'--g');
set(0,'DefaultAxesFontSize',18);
  댓글 수: 16
Umar
Umar 2024년 8월 15일
Hi @Walter Robertson,
Thank you for your kind words regarding the formatting of my code blocks. I appreciate your feedback and am glad to know that the changes have made a positive impact. You have made a lot of contributions over the past years, helped a lot of OPs resolving their complex problems, appreciate others help such as @DGM, @Torsten, @Cyclist, @Star Strider, @Chris La Pierre, @john D Errico, @dpb etc, all of you have given excellent tips by sharing your knowledge and I am really greatful for it.
Umar
Umar 2024년 8월 15일
Hi @Sylvester,
Thank you for your kind message. I am pleased to hear that our discussion was helpful to you. It is completely understandable to feel overwhelmed at times, and I appreciate your openness in sharing your concerns. I sincerely hope that you are able to enjoy a restful night’s sleep soon. Should you have any further questions or need additional support, please do not hesitate to reach out. Wishing you all the best.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by