Cody

Problem 43608. Namespace

Solution 1364315

Submitted on 1 Dec 2017 by David Verrelli
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
x = 10; y_correct = {'a_1';'a_2';'a_3';'a_4';'a_5';'a_6';'a_7';'a_8';'a_9';'a_10'}; assert(isequal(your_fcn_name(x),y_correct))

varnames = 11×1 cell array {'a_' } {'a_1' } {'a_2' } {'a_3' } {'a_4' } {'a_5' } {'a_6' } {'a_7' } {'a_8' } {'a_9' } {'a_10'} varnames = 10×1 cell array {'a_1' } {'a_2' } {'a_3' } {'a_4' } {'a_5' } {'a_6' } {'a_7' } {'a_8' } {'a_9' } {'a_10'}

2   Pass
x = 6; y_correct = {'a_1';'a_2';'a_3';'a_4';'a_5';'a_6'}; assert(isequal(your_fcn_name(x),y_correct))

varnames = 7×1 cell array {'a_' } {'a_1'} {'a_2'} {'a_3'} {'a_4'} {'a_5'} {'a_6'} varnames = 6×1 cell array {'a_1'} {'a_2'} {'a_3'} {'a_4'} {'a_5'} {'a_6'}