Cody

Problem 44944. Convert from Fahrenheit to Celsius

Solution 2813887

Submitted on 10 Aug 2020 by Shukantu Dev Nath
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
F = [75 82 97 65]; C_correct = [23.8889 27.7778 36.1111 18.3333]; assert(all(abs(temp_convert(F) - C_correct) < 1e-4))

2   Pass
F = []; C_correct = []; assert(all(abs(temp_convert(F) - C_correct) < 1e-4))

3   Pass
F = [-1; 1200]; C_correct = [-18.3333;648.8889]; assert(all(abs(temp_convert(F) - C_correct) < 1e-4))