Question: In the last problem, you created a user - defined function called Calc _ Cost _ Pr 4 that calculates the cost of the
In the last problem, you created a userdefined function called "CalcCostPr that calculates the cost of the water tank whose volume is Use the fminbnd function to compute the tank radius that results in the least cost Call it opt Let your band be from to Compute the corresponding height and call it opt.
Note that the function is already provided.
Script
Save
Reset
MATLAB Documentation
Assessment:
Check that "clear" does not exist Pretest
Check if ropt is correct
Check if hopt is correct
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
