matlab 添加文本框textbox

annotation('textbox',[0.2,0.2,0.3,0.4],'LineStyle','-',...
'LineWidth',2)

annotation(‘textbox’,[0.2,0.2,0.3,0.4],‘LineStyle’,’-’,‘LineWidth’,2)中的[0.2,0.2,0.3,0.4]是控制文本框的位置(以0.2,0.2为左下角画文本框)和宽度(0.3)、高度(0.4)。LineStyle,LineWidth分别是控制文本框的线型和线型粗细
参考链接:https://jingyan.baidu.com/article/cdddd41caef16153ca00e166.html

你可能感兴趣的:(matlab 添加文本框textbox)