Question: CODE IN MATLAB 2. Complete the following: Use a loop to determine how many years it will take 100 grams of an unknown substance to
CODE IN MATLAB

2. Complete the following: Use a loop to determine how many years it will take 100 grams of an unknown substance to decay below 5 grams. The substance decays at a rate of 1/3 of its value every year. After year 1:66.6 grams remain, after year 2: 44.4 grams remain, etc... ) b) Use the randi function to generate a single random number between the range 1 and 50. Check if that random integer equals 15. If it does not, then generate another random number. Continue this until the random number equals 15. Display how many incorrect random numbers were generated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
