Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 409654

Submitted on 25 Feb 2014 by J-G van der Toorn

Correct

16Size
Leading solution size is 10.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
celsiusValue = 1;
fahrValue = 33.8;
assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

                    
2
Pass
 
%%
celsiusValue = 0;
fahrValue = 32.0;
assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

                    
3
Pass
 
%%
celsiusValue = 100;
fahrValue = 212;
assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

                    
4
Pass
 
%%
celsiusValue = -100;
fahrValue = -148;
assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

                    
5
Pass
 
%%
celsiusValue = -10;
fahrValue = 14;
assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))