I have 100 sampled numbers, and I need to draw the normal distribution curve of them in matlab.
The mean and standard deviation of these sampled data can be calculated easily, but is there any function that plots the normal distribution?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have access to Statistics Toolbox, the function
histfitdoes what I think you need:Just like with the
histcommand, you can also specify the number of bins, and you can also specify which distribution is used (by default, it’s a normal distribution).If you don’t have Statistics Toolbox, you can reproduce a similar effect using a combination of the answers from @Gunther and @learnvst.