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 273753

Submitted on 5 Jul 2013 by Matt Eicholtz

Correct

16Size
Leading solution size is 11.
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
 
%%
F = 0;
y_correct =  -17.77777777;
assert(abs(far2cel(F)-y_correct)<1e-6);

                    
2
Pass
 
%%
F = 212;
y_correct =  100;
assert(abs(far2cel(F)-y_correct)<1e-6);

                    
3
Pass
 
%%
F = -40;
y_correct =  -40;
assert(abs(far2cel(F)-y_correct)<1e-6);

                    
4
Pass
 
%%
F = 98.5;
y_correct =  36.94444444444;
assert(abs(far2cel(F)-y_correct)<1e-6);