195k views
4 votes
function outputValue = AdjustOutput(outputValue, amplitudeResponse, phaseResponse) % Write an if-statement that subtracts 5 from outputValue % if amplitudeResponse is greater than 10 outputValue = outputValue; % Write an if-statement that adds 3 to outputValue if % phaseResponse is less than 275 end

User Josep
by
4.9k points

1 Answer

4 votes

Answer:

function outputValue = AdjustOutput(outputValue, amplitudeResponse, phaseResponse)

if amplitudeResponse > 10

outputValue = outputValue - 5;

else

outputValue = outputValue;

end

if phaseResponse < 275

outputValue = outputValue + 3;

else

outputValue = outputValue

end

end

AdjustOutput(20, 15, 149)

User Nitin
by
4.6k points