disp
for i = 1:10
   disp(i)
end

display
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
display(['Show the value of i and j...']);%即可以输出字符串
for i=1:2
  for j=1:2
     display(['--------i=', num2str(i), ' j=', num2str(j), '------------']);
  end
end
见我的matlab教材P20