hey, i have this program and i need to draw distribution of power Pr_dbm !

7 ビュー (過去 30 日間)
ramy med
ramy med 2018 年 5 月 28 日
回答済み: Roozbeh Yousefnejad 2018 年 5 月 28 日
c=3e8; Pt=9; Gt=1; Gr=1; f=60e9; d=1:0.05:50;
for i=1:1:length(d)
Pr(i) = Pt*Gr*Gt*((c/(4*pi*d(i)*f))^2)
Pr_dbm(i)=10*log10(Pr(i)); % Pr sans path loss
end

採用された回答

ramy med
ramy med 2018 年 5 月 28 日
like in the pictures but juste one pick

その他の回答 (2 件)

ramy med
ramy med 2018 年 5 月 28 日

Roozbeh Yousefnejad
Roozbeh Yousefnejad 2018 年 5 月 28 日
as I can see, Pr_dbm is only a function of d, so you can simply use plot command to plot it plot(d,Pr_dbm)
I've added a plot that I got from your data

Community Treasure Hunt

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

Start Hunting!

Translated by