Problem 44264. Calculate feeling temperature before climbing a mountain

Solution 1233601

Submitted on 18 Jul 2017 by Peng Liu
  • Size: 14
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
gT=25; h=3000; v=10; fT_correct = -3; assert(isequal(feeling_temperature(gT,h,v),fT_correct))

2   Pass
gT=30; h=500; v=0; fT_correct=27; assert(isequal(feeling_temperature(gT,h,v),fT_correct))

3   Pass
gT=28; h=2500; v=3; fT_correct=10; assert(isequal(feeling_temperature(gT,h,v),fT_correct))

Suggested Problems

More from this Author7

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!