MATLAB: How suppress output from a user defined function

displayfunctionoutput

function [x,y] = myfn(a,b,c)
I intend to use the values of x and y for consequent operations.However the values of x and y are in matrix with big dimensions.As a result the command window is full of continuously changing values.I need to get rid of that.
Any way to suppress the display of x and y in command window but still use the values ?

Best Answer

I don't understand why the values are being displayed in the first place. As long as everything ends with a semicolon, there should be no display. Is there something in the function that explicitly displays something? If so, why?