Question: function [example anyname] = input1-2; anotherinput=2; example input1* anotherinput; anyname example; end functionname (inputl, anotherinput) 1. For the code above, a. Explain why this
function [example anyname] = input1-2; anotherinput=2; example input1* anotherinput; anyname example; end functionname (inputl, anotherinput) 1. For the code above, a. Explain why this is not the correct way to structure a function. What should be changed? b. What does this function do? c. What should be typed into MATLAB to "run" or "call" the function? Can I just click the green RUN button on the editor tab?
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
a This is not the correct way to structure a function because the input arguments inputl and ... View full answer
Get step-by-step solutions from verified subject matter experts
