?? er_conv.m
字號:
function g = er_conv(f1,f2)
% function g = er_conv(f1,f2)
% Function to convolve given transfer functions in the time domain. Takes
% two input structs F1 and F2 with complete transfer function coefficient
% vectors and returns result in struct G.
%
% Author: Evan Ruzanski, CU-Boulder, ECEN5632 MATLAB assignment, FA2004
% Unpack input struct
num1 = f1(1).tf_complete;
den1 = f1(2).tf_complete;
num2 = f2(1).tf_complete;
den2 = f2(2).tf_complete;
% Perform convolution in time
num3 = conv(num1,num2);
den3 = conv(den1,den2);
% Repack output struct
f1(1).tf_complete = num3;
f1(2).tf_complete = den3;
g = f1;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -