continous.m
来自「matlab实现卷积运算。非常高兴业大家分享此代码。」· M 代码 · 共 12 行
M
12 行
period=0.01;
t1=input('please input the input signal time period and it is a array with format[stattime:0.01:endtime]');
t2=input('please input the impulsive reaction time period and it is a array with format[stattime:0.01:endtime]');
x=input('please input the signal and it is a function of t1 with format f(t1)');
h=input('please input the system and it is a function of t2 with format f(t2)');
t0=t1(1)+t2(1);
t3=length(x)+length(h)-2;
t=t0:period:t0+t3*period;
fprintf('please input f=conv(x,h) and plot(t,f).after that you will get the answer of the convolution and see the picture of output signal')
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?