Gistlib Logo

gistlib

piirrä normaalijakauma luvuille 2, 4, 6, 6, 6, 4 ,2, 6 in matlab

main.m
data = [2, 4, 6, 6, 6, 4, 2, 6];
mu = mean(data);
sigma = std(data);

x = mu - 3*sigma:0.01:mu + 3*sigma;
y = normpdf(x, mu, sigma);

figure;
plot(x, y);
title('Normal Distribution of Data');
xlabel('Values');
ylabel('Probability Density');
241 chars
13 lines

similar matlab code snippets

plot coefficient of variation when you already have row and column data in matlab
make a gui with timeseries and statistics in matlab
how to calculate the 99th percentile in matlab
how to calculate the standard deviation of a vector in matlab
how to calculate cumulative distribution function in matlab
how to perform a ztest in matlab
how to calculate the normal distribution in matlab
how to plot the binomial distribution in matlab
how to calculate the percentile of a vector in matlab
how to calculate the variance of a vector in matlab

related categories

matlab
statistics
plotting

gistlibby LogSnag