When my code looks like this
function [ z ] = summie( x,y )z=x+y;disp(['The summie is: ', num2str(z)])end
and I typ in the command window for example
summie(1,2)
This is displayed:
The summie is: 3ans = 3
Is there a way to suppress the 'ans' output, so that only
The summie is: 3
is displayed?
Best Answer