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 208217

Submitted on 24 Feb 2013 by Richard Zapor

Correct

13Size
Leading solution size is 13.
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));
ans =
        1020
2
Pass
 
%% Test 2
u=30;
v = 0.01;
y_correct = [5100 4800];
assert(isequal(your_fcn_name(u,v),y_correct));
ans =
        5100        4800
3
Pass
 
%% Test 3
u=3;
v = 0.03;
y_correct = 1700;
assert(isequal(your_fcn_name(u,v),y_correct));
ans =
        1700