Cody

Solution 1158944

Submitted on 10 Apr 2017 by H M Dipu Kabir
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
p= 1; y_correct = [1]; assert(isequal( seq_wave(p),y_correct))

y = 2 x = 1

2   Pass
p= 1; y_correct = [2]; [~,~, a]=seq_wave(p) assert(isequal(a ,y_correct))

y = 2 x = 1 a = 2

3   Pass
p= 8.25; [a,b,c]=seq_wave(p); assert(isequal(a ,8.25)) assert(isequal(b ,8.25)) assert(isequal(c ,16.5))

y = 16.5000 x = 8.2500

4   Pass
p= 3.5; [a,b,c]=seq_wave(p); assert(isequal(a ,3.5)) assert(isequal(b ,3.5)) assert(isequal(c ,7))

y = 7 x = 3.5000