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일)
이전 댓글 표시
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
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!