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 199685

Submitted on 2 Feb 2013

Incorrect

16Size
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
Fail
 
%% Test 1
u = 3;
v= 0.05;
y_correct = 1020;
assert(isequal(your_fcn_name(u,v),y_correct));
Error: Assertion failed.
2
Fail
 
%% Test 2
u=30;
v = 0.01;
y_correct = [5100 4800];
assert(isequal(your_fcn_name(u,v),y_correct));
Error: Assertion failed.
3
Fail
 
%% Test 3
u=3;
v = 0.03;
y_correct = 1700;
assert(isequal(your_fcn_name(u,v),y_correct));
Error: Assertion failed.