matlab easy please

Question 3 (25 points) Write a MATLAB function by anybirthMatch(N) to simulate the experiment of walking into a room of N people and determining if there is anyone in the room shares a birthday excluding yourself. Use MATLAB’s random number generator to generate a vector of length N that ranges between 1 and 365. Do not model the leap-year case. The output variable y is a logical true false result. In a well-documented MATLAB script, hmwk 10P2.m simulate the experiment of walking into a room with N people using the function anybirth Match(N) developed. The function anybirth Match(N) depicts the experiment of determining if any of the N people have the same birthday. The experiment is repeated 1000 and 10000 trials respectively for as the number of people is adjusted between 1 and 400 respectively. Submit the figure asmwk 10P2. fig. If you designed your code hmwk 10P1.m with extensibility in mind, then the former code can be reused in the problem by simply replacing birth Match(N) with anybirthMatch(N). Homework 9: Problem 3 Probability of Any Birthday with Trials Percentage 0 50 100 150 200 250 Number of People 300 350 400 Show transcribed image text Question 3 (25 points) Write a MATLAB function by anybirthMatch(N) to simulate the experiment of walking into a room of N people and determining if there is anyone in the room shares a birthday excluding yourself. Use MATLAB’s random number generator to generate a vector of length N that ranges between 1 and 365. Do not model the leap-year case. The output variable y is a logical true false result. In a well-documented MATLAB script, hmwk 10P2.m simulate the experiment of walking into a room with N people using the function anybirth Match(N) developed. The function anybirth Match(N) depicts the experiment of determining if any of the N people have the same birthday. The experiment is repeated 1000 and 10000 trials respectively for as the number of people is adjusted between 1 and 400 respectively. Submit the figure asmwk 10P2. fig. If you designed your code hmwk 10P1.m with extensibility in mind, then the former code can be reused in the problem by simply replacing birth Match(N) with anybirthMatch(N). Homework 9: Problem 3 Probability of Any Birthday with Trials Percentage 0 50 100 150 200 250 Number of People 300 350 400

## Expert Answer

Answer to Question 3 (25 points) Write a MATLAB function by anybirthMatch(N) to simulate the experiment of walking into a room of …