Problem 1971. Remove element(s) from cell array
Solution Stats
Problem Comments
-
2 Comments
源樹 上林
on 22 Aug 2020
good
Yunpeng Teng
on 5 Dec 2020
you should add that the element is deleted by the index not the value
Solution Comments
-
1 Comment
Haoran Tian
on 28 Nov 2021
nice one
-
1 Comment
john perkins
on 4 May 2021
very challengning
-
1 Comment
Qin-Yong
on 15 Jan 2021
function y = remove_from_cell_array(x,to_remove)
x(to_remove)=[];
y=x;
end
-
1 Comment
Matthias Saurer
on 10 Jul 2020
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}
-
1 Comment
Matthias Saurer
on 9 Jul 2020
that was a nice one :))
Problem Recent Solvers1051
Suggested Problems
-
1853 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1382 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
449 Solvers
-
Piecewise linear interpolation
484 Solvers
-
Calculate the average value of the elements in the array
706 Solvers
More from this Author31
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!