by adding a semicolon at the end of your statement it will suppress the intermediate result.
In your case:
function result = stuff()
result = 0;
for i=0:10,
j += i;
end
end
will do the trick.
by adding a semicolon at the end of your statement it will suppress the intermediate result.
In your case:
function result = stuff()
result = 0;
for i=0:10,
j += i;
end
end
will do the trick.