Assign variable spend to true or false based on the parameters
Show older comments
% my output for this code is spend= logical 0 but I need it to be true or false
%please help
profit_mild = 100000;
prob_freezing = 0.25;
prob_damage = 0.4;
damage_reduction = 60000;
protection_cost = 5000;
mu = (1 - prob_freezing) * profit_mild + prob_freezing*(damage_reduction);
spend =mu >= profit_mild-protection_cost
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!