good
you should add that the element is deleted by the index not the value
function y = remove_from_cell_array(x,to_remove)
x(to_remove)=[];
y=x;
end
you should also add a test suit where the individual elements are not increasing monotonously, e.g. x={9,4,5,8,3,1,6,4}
that was a nice one :))
338 Solvers
Back to basics 6 - Column Vector
914 Solvers
Basics: 'Find the eigenvalues of given matrix
327 Solvers
Create a two dimensional zero matrix
362 Solvers
Pernicious Anniversary Problem
739 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!