GUI常用对象介绍3

 1 %text
 2 hf = axes;
 3 ht = text(1,1,'示例');
 4 
 5 get(ht);
 6 
 7 %公式 并且设置位置坐标 (积分符号)
 8 text('String','int_0^x dF(x)','Position',[0.5 0.5]);
 9 
10 text('interpreter','latex','String', '$$ int_0^x dF(x) $$','Position',[0.2 0.2]);
11 
12 %Callback 回调函数
13 %原始的语句写出来
14 plot(x)
15 %在原始语句的两边加上单引号
16 'plot(x);'
17 %当原始的语句中含有引号,那么将原始的单引号都改为两个单引号 然后在最外层加上一对单引号
18 'plot(x,y,''r'');'

 

原文地址:https://www.cnblogs.com/wydxry/p/8215076.html