Assume that the random variable X follows a uniform distribution given , fx(x)=1/20 for -10<x<10.if Y=2*(X^4) plot fy(y).
Show older comments
Hello Sir/Madam
Please help me with the code for this question.
Accepted Answer
More Answers (1)
Torsten
on 13 Nov 2014
0 votes
Y=2*(-10+20*rand(10000,1)).^4;
H=histogram(Y,'Normalization','probability');
Best wishes
Torsten.
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!