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 view (last 30 days)
Prabha Kumaresan on 23 Jul 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
code:
N_UE=[4];
N_SC=[12];
Xmax=1
Ymax=1
R=[2 3]
for i = 1:length(R)
xsd=ones(1,N_UE)*Xmax
ysd=ones(1,N_UE)*Ymax
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.
Adam Danz on 24 Jul 2018
Edited: Adam Danz on 24 Jul 2018
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