Question: I need the code written out for Matlab(copy/ paste) and please double check because I don't have much time to submit it. Thanks Both the
I need the code written out for Matlab(copy/ paste) and please double check because I don't have much time to submit it. Thanks Both the Function code and the code to call the function

sorry about the pictuee
- Replace all elements in A that have a value less than 0 with the number 999 and assign the resulting matrix to B - Replace all positive elements in A with their square root and assign the resulting matrix to C. - Find all elements in A with values between -2 and 2 , sort the values in a column vector from lowest to highest, and assign to the variable D Solve this problem using only vectorized code with no loops. Note the variable A is defined as a function input. Do not ovenwrite the value in your code. Resets the solution code to the starter code provided by the instructor. Changes you have made are discarded. Function 8 Save C Reset: 11 MATLAB Documentation 1 function [B,C,D]= matrixfun (A) ronter the commands for your function below. Be sure to assign values roto each of the output variables defined in the function command on line 1. Code to call your function (8) C Reset
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
