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.

Answers (0)

Categories

Products

Asked:

on 29 Jul 2016

Community Treasure Hunt

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

Start Hunting!