Question: I was able to find the function code on matlabgrader ,but it keeps telling me that y has an incorrect value for n0=100 and n0=10


I was able to find the function code on matlabgrader ,but it keeps telling me that y has an incorrect value for n0=100 and n0=10 .I tried to change the variable names to ''y'' ,but it still the same thing .why does matlab keep rejecting the variables y that I found?I found 6 days for 100, n0=100, and r=1, but it marked it wrong .
Code to call your function ? Previous Assessment: 1 of 4 Tests Passed (25\%) Is y correct for n0=100,r=1 ? Variable y has an incorrect value. Is y correct for n0=10,r=1 ? Variable y has an incorrect value. Is the preferred loop used to solve the problem? How about other n0 and r? Variable y has an incorrect value. Calculate the days a type of pathogenic bacteria needed to cause a lake to reach to an unhealthy level 19 solutions submitted (max: Unlimited) | View my solutions hours, and so on. For this particular type of pathogenic bacteria and lake, the lake is not safe to swim in if the bacteria population density exceeds 104 bacteria per ml. Write a MATLAB function that will determine how long it will take for an initial pathogenic bacteria level n0 per ml to reach an unsafe level of n=1x104 per ml. function y= myFunction(no, r) the result to output y. For example, an initial bacterial level of n0=100 per ml would reach an unsafe level in a little under 6 days
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
