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

Learn moreOpportunities for recent engineering grads.

Apply TodayIncorrect

21Size

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

Code Input and Output

1

Fail

%% t = -1; h_correct = 1000; assert(abs(height_of_object_at_time(t)-h_correct)<0.1)

Error: Output argument "h" (and maybe others) not assigned during call to "/users/msssystem19/height_of_object_at_time.m>height_of_object_at_time".

2

Fail

%% t = 0; h_correct = 1000; assert(abs(height_of_object_at_time(t)-h_correct)<0.1)

Error: Output argument "h" (and maybe others) not assigned during call to "/users/msssystem19/height_of_object_at_time.m>height_of_object_at_time".

3

Fail

%% t = 1; h_correct = 995.1; assert(abs(height_of_object_at_time(t)-h_correct)<0.1)

Error: Output argument "h" (and maybe others) not assigned during call to "/users/msssystem19/height_of_object_at_time.m>height_of_object_at_time".

4

Fail

%% t = 10; h_correct = 510; assert(abs(height_of_object_at_time(t)-h_correct)<0.1)

5

Fail

%% t = 15; h_correct = 0; assert(abs(height_of_object_at_time(t)-h_correct)<0.1)