Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Could anyone help me how to randomly stimulate 4 users of different radius having same centre for the code given inorder to get the attached graph

1 回表示 (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2018 年 7 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
code:
N_UE=[4];
N_SC=[12];
Xmax=1
Ymax=1
R=[2 3]
for i = 1:length(R)
radius = R(i)
xsd=ones(1,N_UE)*Xmax
ysd=ones(1,N_UE)*Ymax
rrx=radius*sqrt(rand(1,N_UE))
thetarx=2*pi*rand(1,N_UE)
xrx=xsd+rrx.*cos(thetarx)
yrx=ysd+rrx.*sin(thetarx)
th = 0:pi/100:2*pi
xunit = radius * cos(th) + Xmax
yunit = radius * sin(th) + Ymax
figure(1)
plot(xunit, yunit)
hold on
plot(ysd,xsd,'r^')
hold on
plot(yrx,xrx,'ko')
hold on
end
I am getting the graph as shown in 11.fig.But i actually need to get the graph as shown in 12.fig by modifying the code.Could anyone please help me on this.
  1 件のコメント
Adam Danz
Adam Danz 2018 年 7 月 24 日
編集済み: Adam Danz 2018 年 7 月 24 日
Prabha, you are abusing this platform by asking the same question > 3 times in hopes that someone will understand what you need and provide you the code you're looking for. This causes many volunteers to put lots of time into your project with zero collaboration between the volunteers and with you. After viewing many of your recent questions, I get the feeling you haven't tried to troubleshoot your problems and that you expect others to do that for you every time you have a problem. You will not learn to code or analyze data without learning to troubleshoot and using matlab's debug mode. If you need help learning debug mode let me know.
Here are the duplicates to this same question

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by