%----------------------------------------------------------------------------------- % exa080401.m for example 8.4.1 and fig8.…
ABS 源代码
制动防抱死系统(antilockbrakesystem)简称ABS。作用就是在汽车制动时,自动控制制动器制动力的大小,使车轮不被抱死,处于边滚边滑(滑移率在20%左右)的状态,以保证车轮与地面的附着力在最大值。
%----------------------------------------------------------------------------------- % exa080401.m for example 8.4.1 and fig8.…
x=-3.14:.1:6.28; y3=abs(sin(2*x)); y=sin(10*x); y1=awgn(y,10); y2=y3.*(y+y1); plot(x,abs(y2),x,y3);
%----------------------------------------------------------------------------------- % exa080401.m for example 8.4.1 and fig8.…
function y = round0_255(x) y = x; below0 = y < 0; above255 = y > 255; y = y .* abs(below0 - 1); y = y .* abs(above255 - 1…
%----------------------------------------------------------------------------------- % exa080401.m for example 8.4.1 and fig8.…
%----------------------------------------------------------------------------------- % exa080401.m for example 8.4.1 and fig8.…
f = [0 0.3 0.4 0.6 0.7 1]; m = [0 0 1 1 0 0]; b = remez(17, f, m); [h, w] = freqz(b, 1, 512); plot(f, m, w/pi, abs(h…
%----------------------------------------------------------------------------------- % exa080401.m for example 8.4.1 and fig8.…
t=0:0.001:3;u=cos(300*t)+cos(200*t); U=fft(u); plot(abs(U));