Question: delete selected value O solutions submitted (max: 3) detine a function called delete_selected that takes a matrix (m) and a scalar(v) and return a vector


delete selected value O solutions submitted (max: 3) detine a function called delete_selected that takes a matrix (m) and a scalar(v) and return a vector that has all elements of m except elements that are equal to vif v is no provided by the user return a vector that contain non zero value of m Example >> y = delete_selsected([1 2 3 4]. 1) y= 3 2 4 >> y = delete_selsected([1 0.3 41) y = 3 0 4 Function C Reset EN MATLAB Documentation 1 function y - delete_selsected(m, v) Ruth Ayala Courses & Content LMS Integration Documentation & Support y - delete_selsected([1 @; 3 4]) Run Function Assessment: Submit (Attempt 1 of 3) 2 one input Random matrix, random Scalar Picker O solutions submitted (max: 3) Write a function called picker that takes three input arguments called condition, int and in2 in this order. The argument condition is a logical if it is true, the function assigns value of int to the output argument out, otherwise, It assigns the value of in2 to out. See the examples below to see how picker works in practice a = 2 b = 3 picker(a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
