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

112 Ansichten (letzte 30 Tage)
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 Kommentare
Umar
Umar am 15 Aug. 2024
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 am 15 Aug. 2024
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Communications Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by