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

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

1 Expert Approved Answer
Step: 1 Unlock

a This is not the correct way to structure a function because the input arguments inputl and ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!