Answer:
MATLAB code is given below
Explanation:
% Define the function.
function [ output_args] = removeEvens( input_args)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
%Remove the even number from the array using mod function.
output_args = input_args (mod(input_args,2)~=0);
%Display the message.
disp('odd Values are');
%Display the results.
disp(output_args);
%Terminate the function.
end
Function Call:
%Function Call
inputRowArray = [1,2,3,4,5]
removeEvens(inputRowArray)