Plot histogram with Plots

plotting
statistics

#1

“In convertToAnyVector, could not handle the argument types: (Float64,)”


#2

You’re plotting a histogram of a scalar… I’m not really sure what you’d
expect that to do…

This error is when the input types aren’t supported. You can read more in
the docs.


#4

Use the help to look up what the rand and mean functions can do. Hint: if you make a matrix, you can calculate the mean the columns all at once, so no loop is necessary. The means will then be a vector which can be plotted. Other hint: by the Central limit theorem the distribution of the means should look like a bell curve when you put enough of them.

And this is obviously the same homework problem which was just posted twice here, and also on Stack Overflow.


#5

Which introductory Julia tutorials have you looked at? See the “Tutorials” and “Video tutorials” sections on the Julia webpage:

http://julialang.org/learning/