Question: MATLAB PROGRAM PLEASE Create a function called bern.m that returns the probability of k successes in N trials of an independent experiment with individual probability
MATLAB PROGRAM PLEASE

Create a function called bern.m that returns the probability of k successes in N trials of an independent experiment with individual probability of p. Your function must accept three parameters: k, Nand p . . . Your function must return the Bernoulli probability .Your function should include error checking. Check the help information for the MATLAB functions error and/or return. You should verify that k 20 and N >0 and k SN etc; when there is a problem, you should notify the user of the issue and return to the calling function without calculating anything
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
