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!