On paper, we base the answer off the z-table

How do we do this on MatLab so that the answer can be found at any number given X?

This is what I've come up with, but I'm lacking the are under the distribution curve to the left of X

sample = [1 2 3 4 5 6 7 8 9 10];

mu = mean(sample)

sig= std(sample)

X = 5 %insert any x here, I used 5 randomly

Z = (X-mu)/(sig) %z-score

## Best Answer