whts the conclusion should be for this?
Ältere Kommentare anzeigen
please help me with this questions. I have done it but i dont know whts the conclusion should be. i will appreciate if someone can give me a conclusion. The question is below
The command A=randi([1 6]),n,5), where n > 0 is a positive integer, produces a matrix A having n rows and 5 columns consisting of random integers between 1 and 6. Produce a script that asks for a positive integer n > 0 and that then:
Creates the vector v such that v(k) is the sum of the k-th row of A. Then a plot is created in a figure window using the following commands:
histogram(v,'normalization','probability') (please explain wht this command does?)
hold on
ezplot('(1/(3.8188*sqrt(2*pi)))*exp(-(x-17.5)ˆ2/(2*(3.8188ˆ2)))',[5 30]) (please explain wht this command does?
By making n large (about 5000) draw a conclusion from the obtained figure (note that each row of A can be interpreted as the outcome of throwing 5 dice).
1 Kommentar
Image Analyst
am 26 Okt. 2015
You say you've done it, but you forgot to post your figure. Please post a screenshot so that we might be able to draw a conclusion from it. Off the top of my head, I'm not sure what plotting that Gaussian depending on "x" has to do with your "v" vector. What relationship is there between x and v???
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Event Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!