How to plot probability for specific value?
이전 댓글 표시
Hi,
I am trying to find probability for a given range. I have this formual d(0)=1-(d/d0)^k. I know the the range but I don't know how to plot this probability. I want to find probability of reception with respect to range. The plot should go exponential. But my plot is just plotting one dot. WHat should I do? Here is my code. function r0=Sims( ) syms r r0 k d r0=solve('1-(r/r0)^k=d','r0'); r=input('Enter the value of r'); d=input('Enter the value of d'); k=input('Enter the value of k'); r0 =r/exp(log(1-d)/k); fprintf('\n the value of r0 %d\n',r0) figure; probplot(x,y) xlim([0 100]) xlabel('Range(NM)') title('Non-interference Probability') end
Please help me. I am new to Matlab.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!