Matlab之显示输出

0.recommand: fprintf

fprintf('%d\n', i);

 

1.disp

disp(['answer = '  num2str(5)]);

 

2.sprintf

sprintf('%d',i)

 

3.disp+sprintf

disp(sprintf('%d',i));

posted @ 2017-03-16 12:32  Shiyu_Huang  阅读(364)  评论(0编辑  收藏  举报