MATLAB 中单个图形的多个眼图

multiple eyediagrams on a single figure in MATLAB

有没有办法在 MATLAB 中的一个图形上有多个眼图。我想做这样的事情:

figure;
subplot(311);
eyediagram(x1, ....);
subplot(312);<br>
eyediagram(x2, ....); 
subplot(313);
eyediagram(x3, ....);

不幸的是,每次调用眼图都会创建自己的图。我已经尝试绘制多个眼图并将它们单独复制到另一个图形,但我想知道是否有 better/cleaner 方法可以做到这一点。

谢谢!

来自documentation

Note: You cannot use hold on to plot multiple signals in the same figure.

基于该声明,以及您可以 指定数字句柄到 eyediagram(见下文)而不是 axes 句柄的事实,除了如您所述手动复制绘图对象(可能使用 copyobj)之外,这是不可能的。

指定图形

eyediagram(x,n,period,offset,plotstring,h) is the same as the syntax above, except that the eye diagram is in the figure whose handle is h, rather than in a new figure. h must be a handle to a figure that eyediagram previously generated.