MATLAB: Question from a new learner

function issuesMATLAB

I am new at this. I've created a function script with 2 inputs and 2 outputs but when I run it only the answer to the first input/output pair is returned. Why doesnt the second output run?

Best Answer

  • How did you call it? Did you accept both into variables? Like
    [ouput1, output2] = MyFunction(input1, input2)