1. 添加副标题
-
多行标题已经支持了很长一段时间,但是从r2020b开始,您可以用两种简单的方法将具有自己独立属性的副标题添加到绘图中。
- Use the new subtitle function:
>> s=subtitle('mySubtitle')
- Use the new second argument to the title function:
>> [t,s]=title('myTitle','mySubtitle')
figure()
tiledlayout(2,2)
% Method 1
ax(1) = nexttile;
th(1) = title('Pupil size');
sh(1) = subtitle('Happy faces');
ax(2) = nexttile;
th(2) = title('Pupil size');
sh(2) = subtitle('Sad faces');
% Method 2
ax(3) = nexttile;
[th(3), sh(3)] = ti