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

Learn moreOpportunities for recent engineering grads.

Apply TodayCorrect

14Size

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

Code Input and Output

1

Pass

%% g = 0.9; f = 10; tr = 1; tm = 2; n = 10; out = 0; assert(isequal(chaosOrOrder(g,f,tr,tm,n),out))

2

Pass

%% g = 0.9; f = 10; tr = 1; tm = 2; n = 100; out = 1; assert(isequal(chaosOrOrder(g,f,tr,tm,n),out))

3

Pass

%% g = 0.9; f = 10; tr = .1; tm = 2; n = 10000; out = 0; assert(isequal(chaosOrOrder(g,f,tr,tm,n),out))

3 Comments