Additional test cases have been added.
Problem Description says, function should return n*1, however the solutions are 1*n. Kindly, edit the problem description.
Problem say cell is n*1 ,but example is 1*n
when the code is rewritten as y = [y {s(S:Ind(E))}];, it includes the spaces. But, when the code is rewritten y =[y cellstr(s(S:Ind(E)))] it leaves the spaces out. Why does it do that?
The question asks for an Nx1 cell array but the correct answer is a 1xN cell array. Please fix this lie.. it threw me off badly
こうかな?もっと簡単に書きたい。
c = mat2cell( 1:sum(b), 1, b )
for i=1:length(c)
y{i} = s(c{i});
end
How to find the position of an element in a vector without using the find function
2481 Solvers
285 Solvers
Getting the row and column location from a matrix
244 Solvers
How many trades represent all the profit?
526 Solvers
Natural numbers in string form
360 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!