How can i add a normal distribution to a an stem plot?

2 views (last 30 days)
Hi, i have a relative frequency plot, using the stem command, crc is a 1x6061 matrix,
[n xout]=hist(crc,100,);
stem(xout,n/sum(n))
and i need something like this but with stem
  1 Comment
LauraLee Austin
LauraLee Austin on 10 Oct 2016
How many stems do you want to see? 100? Depending on the crc data, that could create stems that are very small in relation to the histogram.

Sign in to comment.

Answers (1)

Ern V
Ern V on 10 Oct 2016
Edited: Ern V on 10 Oct 2016
Something like this:

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!