From 7e46fbec5ca26d7f0a551379217423d3f7776bbd Mon Sep 17 00:00:00 2001 From: thfu <2779155576@qq.com> Date: Mon, 4 Nov 2024 19:09:41 +0800 Subject: [PATCH] =?UTF-8?q?diff=5Fplot.m=E9=80=89=E6=8B=A9=E4=BA=8C?= =?UTF-8?q?=E8=80=85=E6=9C=80=E7=9F=AD=E7=9A=84=E9=95=BF=E5=BA=A6=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=AF=94=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script_m/diff_plot.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script_m/diff_plot.m b/script_m/diff_plot.m index e88b75a..19bf93a 100755 --- a/script_m/diff_plot.m +++ b/script_m/diff_plot.m @@ -1,6 +1,8 @@ function diff_plot(iir_out, Script_out,leg1,leg2,a) -N = length(iir_out); +N = min(length(iir_out),length(Script_out)); +iir_out = iir_out(1:N); +Script_out = Script_out(1:N); n = 0:1:N-1; diff = iir_out-Script_out;