clcx=randn(1,100000);y=randn(1,100000);Za=x+10; [f,x]=hist(Za,100); %Simulated PDF
bar(x,f/trapz(x,f));hold on;title('normalized histogram');ym = mean(Za)yv = var(Za)
MATLAB: Is the mean function not working
mean
Related Question
- How to go about finding the standard normal probability based on the z-score
- What would be the simulation for the following statement?: A fair coin is tossed until the first head occurs. Do this Z = 10 times and plot the relative frequencies of this occurring at the ith toss, for suitable values of i.
Best Answer