MATLAB: Problem with running m file

running file

When I run a very simple m (prob.m ) file as: x = 1; y = 2; z= x+y;
I get the right answer in the workspace, but the command window just says the name of the file. What am I doing wrong?

Best Answer

remove ; from end of each commands