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 Solvers992
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
14600 Solvers
-
777 Solvers
-
10536 Solvers
-
Remove the two elements next to NaN value
604 Solvers
-
There are 10 types of people in the world
761 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!