Make a function file of the following form:
Exercise 6.3: FOR loop
function b = kwad(r)
in which a row vector is squared element-wise. Do this without using the command
(HINT: Use the command
- Work out the problem on paper.
- Write the m-file in MATLAB.
- Test the function file with the row
= [1 2 3 4 5] and, if necessary, debug the file.