Sunday, February 5, 2012

Normal Distributions in MatLab

%% Normal Distributions in Matlab
% James Eastham
% Member, IEEE
% Created on: 2/5/2012
% The following code creates multiple normal distributions

figure('Color',[1 1 1]);
x = 17:0.1:28; %Plot range

pop_average = 21.98; %population mean
sigma = .4; %population sigma
normal_dist = normpdf(x, pop_average, sigma);
plot(x, normal_dist,'LineWidth',3);hold on;

pop_average = 22.89;
sigma = .244;
normal_dist = normpdf(x, pop_average, sigma);
plot(x, normal_dist,'--r','LineWidth',3);hold on;

pop_average = 21.84;
sigma = .78;
normal_dist = normpdf(x, pop_average, sigma);
plot(x, normal_dist,'-.g','LineWidth',3);hold on;

pop_average = 22.24;
sigma = .91;
normal_dist = normpdf(x, pop_average, sigma);
plot(x, normal_dist,'-ko','LineWidth',3);hold on;

legend('build 1','build 2','build 3','overall')
grid on;
title('Design Build Performance');


Mark Mitchell said...

Very nice.

Himani said...

In this case we have generated the normally distributed data using the matlab function.

If we have set of data then how to plot its probability distribuition? for eg an array containing 30 values

Karthika Shree said...

Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us
Matlab Training in Chennai

Karthika Shree said...
This comment has been removed by the author.
john jersy said...

Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
Click here:
angularjs training in chennai
Click here:
angularjs training in velarchery

sai said...

This is a good post. This post give truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. thank you so much. Keep up the good works.
Click here:
Microsoft azure training in btm
Click here:
Microsoft azure training in rajajinagar

pooja saravanan said...

Awesome article. It is so detailed and well formatted that i enjoyed reading it as well as get some new information too.
Blueprism training in Chennai

Blueprism training in Bangalore

Blueprism training in Pune

Blueprism online training

ragul ragul said...

The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
Devops Training in pune

devipriya chitra said...

Read all the information that i've given in above article. It'll give u the whole idea about it.

rpa training in velachery| rpa training in tambaram |rpa training in sholinganallur | rpa training in annanagar| rpa training in kalyannagar

nivatha said...

Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
Data Science training in rajaji nagar | Data Science with Python training in chenni
Data Science training in electronic city | Data Science training in USA
Data science training in pune | Data science training in kalyan nagar

sudha P said...

Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
java training in chennai | java training in bangalore

java interview questions and answers | core java interview questions and answers

sasirekatamilselvan said...

Good Post, I am a big believer in posting comments on sites to let the blog writers know that they ve added something advantageous to the world wide web.
angularjs online training

apache spark online training

informatica mdm online training

devops online training

aws online training

jai said...

This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
Microsoft Azure online training
Selenium online training
Java online training
Python online training
uipath online training

Softlogicseo said...

Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
Matlab Training in Chennai | Best Matlab Training course in Chennai
Dotnet Training in Chennai |Best Dotnet Training course in Chennai
Android Training in Chennai |Best Android Training course in Chennai
CCNA Training in Chennai | Best CCNA Training course in Chennai