calculating probability in Matlab
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
i have this question:
create a MATLAB function that approximates the probability in the following experiment with simulations!Two fair dice are thrown. Find the probability that the sum of the numbers obtained is 8.
The number of simulation should be N = 10^3. The variable p should store the approximation.
function p = sim()
    N = 10^3;
    p =     ;
end
does any body have an idea how to continue from here? 
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Descriptive Statistics and Visualization finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

