Feeds
提问
how should I plot the y(n)
Z=rand(3000,1); for n=1:3000 x=Z(n); y(n)=1-exp(-x); end how can I plot the y(n)? I tried cdfplot(y(n)),cdf(x,y(n)...
6 years 前 | 1 个回答 | 0
1
个回答提问
I want plot y = 1-exp(-x) for 3000 times(repeat 3000 times). The value x is the random number from [0,1]. Please use "rand"to get x and use "cdfplot" to get the y
I want plot y = 1-exp(-x) for 3000 times(repeat 3000 times). The value x is the random number from [0,1]. Please use "rand"to ge...
6 years 前 | 1 个回答 | 0
