是否可以 link Simulink 范围的轴?

Is it possible to link axes of Simulink scopes?

在 Matlab 中,可以使用 linkaxes link 不同图形的轴。放大一张图,相应的图也会以同样的方式放大。

我想知道 Simulink 示波器是否可以实现类似的功能。如果您手动放大一个范围,所有范围都将重新缩放,那将很方便。

(另一种方法当然是将数据导出到工作区,将其绘制成图形并使用 linkaxes。)

编辑

扩展问题:是否可以 link Matlab 图形的轴 Simulink 范围?

Simulink Scope 块只是(奇特的)MATLAB 图形,因此您可以在 MATLAB 中做的大多数事情都可以对图形进行 window.

在这种情况下,你想做一些类似的事情

% Ensure the scopes of interest are open, then
% find the handle to all of them
hscopes = findall(0,'Tag','SIMULINK_SIMSCOPE_FIGURE');
% find the handles to all axes on the scopes
ha = findall(hscopes,'Type','Axes');
% link them
linkaxes(ha);

显然,如果您只想 link 个特定轴,则需要做更多的工作。

link 图形和示波器的过程类似。