find a coordinate on a cdf plot

2 visualizaciones (últimos 30 días)
Ricky
Ricky el 15 de En. de 2012
Hi all,
if i have a set of data which to plot a cdf, then if i want to find any coordinate on the plot, how do I do that? for example if i have a set of data like so:
a= [2.71041989488469 30.9744843517359 35.0426095615005 84.7887577773426 44.4726721695673 68.2311859721360 149.178130066466 90.2801508535120 8.84376073512000 147.244708955385 38.8224186488369 103.396733598124 153.079381150340 214.897707140120 304.243223329602 148.916085985923 58.9138967951408 18.4301133021774 76.0467862039256 161.352372583739 21.0419170234257 68.8628829108283 36.5730058245552 151.785123192820 57.9177789865713 41.9609658385951 42.9557444806690 45.4822415009675 54.0768208068504 15.1403645992012 33.8646089844861 127.833233619448 70.9993644703667 80.4983333309284 71.6262172653839 49.5983352627896 125.778256837315 25.2210455806522 219.192327745135 126.966260667504 87.1106666047536 155.137356291251 132.175936549177 181.715623313934 139.328420102223 286.917363383791 157.684237117523 68.6891027737046 89.8730355097204 96.0768525098648 131.353554821199 105.400626537543 114.079101032098 84.0093313567771 112.331429263859 33.1543501766116 86.4680464521587 43.1816438154305]
cdfplot(a);
can you use fzero to do the job?if so, can anyone show me how?
Any help would be really appreciated.
Ta
Rak
  1 comentario
the cyclist
the cyclist el 15 de En. de 2012
Can you explain in more detail what you mean by "find any coordinate on the plot"?

Iniciar sesión para comentar.

Respuesta aceptada

per isakson
per isakson el 15 de En. de 2012
My guess:
[f,x] = ecdf(a);
x(1) = x(1)-eps(x(1));
interp1( f, x, 0.5 )
interp1( x, f, 100 )

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by