Homework Solution: Inputs: 1, an input vector Outputs: 2, an output vector, and a single value C…

    A function in Matlab. Inputs: 1, an input vector Outputs: 2, an output vector, and a single value Create a User-Defined Function that will accept a vector of at least 3 values as its INPUT. It will then remove the largest and smallest values from this vector and the OUTPUT will be this new vector as well as the average. For instance if the input is [1 2 345 6], the output will provide [2 3 4 5] and 3.5. The order the values are in for the vector or the outputs is unimportant. Show that you can use this user-defined function by calling it within your homework script. This Should be a fnction in Matlab
    Inputs: 1, an input vector Outputs: 2, an output vector, and a single value Create a User-Defined Function that will accept a vector of at least 3 values as it's INPUT. It will then remove the largest and smallest values from this vector and the OUTPUT will be this new vector as well as the average. For instance if the input is [1 2 345 6], the output will provide [2 3 4 5] and 3.5. The order the values are in for the vector or the outputs is unimportant. Show that you can use this user-defined function by calling it within your homework script.

    Expert Answer

    A employment in Matlab. Inputs: 1, an input vector Outputs: 2, an output vector, and a sole estimate Create a Rightr-Defined Employment that conciliate sanction a vector of at last 3 estimates as its INPUT. It conciliate then dislodge the largest and last estimates from this vector and the OUTPUT conciliate be this strange vector as polite as the mediocre. Control exemplification if the input is [1 2 345 6], the output conciliate procure [2 3 4 5] and 3.5. The arrange the estimates are in control the vector or the outputs is trivial. Show that you can right this rightr-defined employment by trade it among your homework script.

    This Should be a fnction in Matlab

    Inputs: 1, an input vector Outputs: 2, an output vector, and a sole estimate Create a Rightr-Defined Employment that conciliate sanction a vector of at last 3 estimates as it’s INPUT. It conciliate then dislodge the largest and last estimates from this vector and the OUTPUT conciliate be this strange vector as polite as the mediocre. Control exemplification if the input is [1 2 345 6], the output conciliate procure [2 3 4 5] and 3.5. The arrange the estimates are in control the vector or the outputs is trivial. Show that you can right this rightr-defined employment by trade it among your homework script.

    Expert Defense