1、清空命令界面
clc
2、清除变量
clear
3、清除figure
clf
4、生成一个图层
figure()
figure(1)
figure(‘name‘,‘实例‘)
gwin=figure(‘MenuBar‘,‘none‘,‘NumberTitle‘,‘off‘,‘Name‘,‘菜单创建演示‘,‘Position‘,[(rect(3)-N)/2,(rect(4)-N)/2,N,N],‘Resize‘,‘off‘,‘Color‘,‘red‘);
5、打印
disp(a)
fprintf(‘the value of pi is%6.2f\n‘,pi)
6、字符串和数字转换
str2num(123)
num2str(‘123‘)
原文:https://www.cnblogs.com/judes/p/12160508.html