Cumulative distribution function of vector -doesn't work correctly
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I need to use cdf function. It works on simple vector like x=[-3:0.1:3], but not for my vector and data.
oh2L1=[0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.026 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.140 0.331 0.227 0.183 0.244 0.323 0.305 0.201 0.253 0.201 0.227 0.262 0.201 0.201 0.166 0.174 0.201 0.209 0.140 0.227 0.244 0.227 0.192 0.105 0.096 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017];
oh2L2=[0.009 0.017 0.017 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.026 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.026 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.026 0.017 0.017 0.009 0.017 0.026 0.017 0.009 0.009 0.009 0.017 0.017 0.026 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.026 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.026 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.017 0.026 0.026 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.026 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.026 0.026 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.017 0.026 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.026 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.000 0.017 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.000 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.140 0.314 0.227 0.201 0.262 0.331 0.314 0.209 0.262 0.209 0.236 0.288 0.209 0.218 0.166 0.201 0.201 0.218 0.157 0.236 0.244 0.227 0.201 0.131 0.105 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017];
oh2L3=[0.017 0.017 0.017 0.017 0.026 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.026 0.017 0.017 0.026 0.026 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.009 0.017 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.026 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.009 0.017 0.017 0.017 0.017 0.017 0.017 0.017 0.009 0.017 0.017 0.009 0.017 0.017 0.017 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.017 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.122 0.262 0.209 0.157 0.209 0.262 0.253 0.166 0.209 0.174 0.192 0.218 0.166 0.174 0.140 0.157 0.174 0.183 0.122 0.192 0.201 0.192 0.166 0.113 0.087 0.009 0.009 0.009 0.009 0.017 0.017 0.017 0.017 0.017 0.009 0.009 0.009 0.017 0.009 0.009 0.009 0.009 0.009 0.009 0.009 0.017 0.017 0.026];
oh2=[oh2L1, oh2L2, oh2L3];
oh2sorted=sort(oh2,'ascend');
y2= cdf(pd,oh2sorted)
plot(oh2sorted,y2)
The problem is that the chart shows that function doesn't work correctly. For example - i have only two data (from 3024) in vector = 0, but for oh2=0 chart display y(x=0)=0.
Where is the problem?
2 Commenti
Risposte (1)
Star Strider
il 13 Dic 2020
Modificato: Star Strider
il 13 Dic 2020
The code is working correctly. All the values in ‘oh2’ are extremely small and close together, and there are only 29 unique values in it:
Uoh2sorted = unique(oh2sorted)
producing a vector going from 0 to 0.331.
EDIT — (13 Dec 2020 at 17:20)
To appreciate it in a larger context, run this:
y2= cdf(pd,oh2sorted);
plot(oh2sorted,y2)
yv = -3:0.1:3;
ycdf = cdf(pd, yv);
figure
plot(yv, ycdf)
hold on
plot(oh2sorted,y2, '+r')
hold off
grid
Your data are plotted as red ‘+’ signs.
10 Commenti
Star Strider
il 13 Dic 2020
You defined ‘pd’ as a normal distribution with a mean of 0 and a standard deviation of 1, the default parameters in the way you defined it:
pd = makedist('Normal')
if you want to define it with respect to your data, try this:
pd = makedist('Normal', 'mu',mean(oh2), 'sigma',std(oh2));
y2= cdf(pd,oh2sorted);
plot(oh2sorted,y2)
yv = linspace(-0.15, 0.15);
ycdf = cdf(pd, yv);
figure
plot(yv, ycdf)
hold on
plot(oh2sorted,y2, '+r')
hold off
grid
I have no idea what you are doing. Make appropriate changes to get the result you want.
Also, I am not certain how to interpret ‘... the probability of get 0 is around 0,06%’ since I am now confused as to whether you want a cumulative distribution function or a probability density function.
The pdf is given as:
pd = makedist('Normal', 'mu',mean(oh2), 'sigma',std(oh2));
y2= pdf(pd,oh2sorted);
plot(oh2sorted,y2)
yv = linspace(-0.15, 0.15);
ypdf = pdf(pd, yv);
figure
plot(yv, ypdf)
hold on
plot(oh2sorted,y2, '+r')
hold off
grid
I will let you sort that.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!