Array resizing: Removing elements
Remove elements 2, 4, and 6 from row array pendingTasks.
Your Solution
1 function pendingTasks = RemoveTasks (pendingTasks)
2 % pendingTasks: Array of tasks ids
3
4 %Remove element 2, 4, and 6 from pendingTasks
5 pendingTasks = [];
6
7 end
Run Your Solution
Code to call your function when you click Run
1 RemoveTasks([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])