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