choose the min length to compare
This commit is contained in:
		
							parent
							
								
									2fdaaa3611
								
							
						
					
					
						commit
						b00693ce73
					
				|  | @ -1,6 +1,8 @@ | ||||||
| function diff_plot(iir_out, Script_out,leg1,leg2,a) | 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; | n = 0:1:N-1; | ||||||
| diff = iir_out-Script_out; | diff = iir_out-Script_out; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue