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));
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
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));