📄 ex2322.m
字号:
%例23-22 文本框对齐方式(M-File)
subplot(2,3,1)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Left','FontSize',15,'HorizontalAlignment','Left',...
'LineStyle','-.','EdgeColor','r') %设置文本框边界线型和颜色
title('水平对齐-Left')
subplot(2,3,2)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Center','FontSize',15,'HorizontalAlignment','Center',...
'LineStyle','-.','EdgeColor','r')
title('水平对齐-Center')
subplot(2,3,3)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Right','FontSize',15,'HorizontalAlignment','Right',...
'LineStyle','-.','EdgeColor','r')
title('水平对齐-Right')
subplot(4,3,7)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Middle','FontSize',15,'VerticalAlignment','Middle',...
'LineStyle','-.','EdgeColor','r')
title('垂直对齐-Middle')
subplot(4,3,8)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Top','FontSize',15,'VerticalAlignment','Top',...
'LineStyle','-.','EdgeColor','r')
title('垂直对齐-Top')
subplot(4,3,9)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Cap','FontSize',15,'VerticalAlignment','Cap',...
'LineStyle','-.','EdgeColor','r')
title('垂直对齐-Cap')
subplot(4,2,7)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Baseline','FontSize',15,'VerticalAlignment','Baseline',...
'LineStyle','-.','EdgeColor','r')
title('垂直对齐-Bottom')
title('垂直对齐-Baseline')
subplot(4,2,8)
plot(1,1,'+','MarkerSize',30)
text(1,1,'Bottom','FontSize',15,'VerticalAlignment','Bottom',...
'LineStyle','-.','EdgeColor','r')
title('垂直对齐-Bottom')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -