Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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 visualización (últimos 30 días)
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 comentario
Adam Danz
Adam Danz el 24 de Jul. de 2018
Editada: Adam Danz el 24 de Jul. de 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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by