Cody

Solution 661715

Submitted on 27 Apr 2015 by Andrei Bobrov
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
%% y_correct_1= [1 5 ;6 10]; output_blocks =divide_into_blocks(10,2); assert(isequal(output_blocks,y_correct_1))

2   Pass
%% y_correct_1= [1 25 ;26 50;51 75 ;76 100]; output_blocks =divide_into_blocks(100,4); assert(isequal(output_blocks ,y_correct_1))

3   Pass
%% y_correct_1= [1 8 ;9 16;17 24]; output_blocks =divide_into_blocks(24,3); assert(isequal(output_blocks ,y_correct_1))