Make a function file of the following form:
Exercise 6.6: IF loop
function b = replace(a)
in which all elements of a column greater than 5 are replaced by 0. Do this by without using the command
(HINT: Use the commands
>> if and
- Work out the problem on paper.
- Write the m-file in MATLAB.
- Test the function file with the column [1;2;3;4;5;6;7] and, if necessary, debug the file,