In: Computer Science
1D Array Function
Write a function in MATLAB to convert miles to feet. This function should work for one number, or an array of numbers to be converted.
Matlab function code
============================================================================================
function [feet] = milesToFeetConvert(miles)
feet=miles.*5280;
end
============================================================================================
Output