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 200351

Submitted on 5 Feb 2013 by Vitaly Lavrukhin

Correct

13Size
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
Code Input and Output
1
Pass
 
%% Test 1
u = 3;
v= 0.05;
y_correct = 1020;
assert(isequal(your_fcn_name(u,v),y_correct));

                    
2
Pass
 
%% Test 2
u=30;
v = 0.01;
y_correct = [5100 4800];
assert(isequal(your_fcn_name(u,v),y_correct));

                    
3
Pass
 
%% Test 3
u=3;
v = 0.03;
y_correct = 1700;
assert(isequal(your_fcn_name(u,v),y_correct));