th-cam.com/video/a-g3Kh6zZU4/w-d-xo.html for Impulse Response and Transfer Function (MATLAB/Simulink Simulation) th-cam.com/video/xsW0snx3rkM/w-d-xo.html for Matched Filter, Correlation, and Convolution (MATLAB/Simulink Simulation) The related m-file and Simulink model file can be downloaded at kr.mathworks.com/matlabcentral/fileexchange/174555-matched-filter-correlation-convolution-with-matlab %sig01e05.m % Correlation/Convolution and Matched Filter clear, clf M=50; Ts=1/M; x1=ones(M,1)*[1 1]; x1=x1(:).'; x2=ones(M,1)*[1 -1]; x2=x2(:).'; g1=fliplr(x1); g2=fliplr(x2); Ng=length(g1); x=[x1 zeros(1,M) x2 zeros(1,M) x1 zeros(1,M) x2]; % signal to transmit Nx=length(x); Nbuffer= min(M*11,Nx); tt=[0:Nbuffer-1]*Ts; Noise_amp=0.3; x = x + Noise_amp*randn(1,Nx); xbuffer=zeros(1,Nbuffer); ybuffer=zeros(2,Nbuffer); for n=1:Nx xbuffer=[x(n) xbuffer(1:end-1)]; y=[g1; g2]*xbuffer(1:Ng).'*Ts; ybuffer=[ybuffer(:,2:end) y]; subplot(312), plot(tt,ybuffer(1,:)), subplot(313), plot(tt,ybuffer(2,:)) pause(0.01), if n
@ sir we can convert matlab code to hdl verilog code .. for that we have to write matlab code in detailed without using any inbuilt function so that it can be synthesised
@@HaramiBalak-h2w In fact, xcorr() is the only one MATLAB built-in function that is used in my code and the statements using the function (related y1 and y2) are dispensable so they can be removed with no problem.
th-cam.com/video/a-g3Kh6zZU4/w-d-xo.html for Impulse Response and Transfer Function (MATLAB/Simulink Simulation)
th-cam.com/video/xsW0snx3rkM/w-d-xo.html for Matched Filter, Correlation, and Convolution (MATLAB/Simulink Simulation)
The related m-file and Simulink model file can be downloaded at
kr.mathworks.com/matlabcentral/fileexchange/174555-matched-filter-correlation-convolution-with-matlab
%sig01e05.m
% Correlation/Convolution and Matched Filter
clear, clf
M=50; Ts=1/M;
x1=ones(M,1)*[1 1]; x1=x1(:).';
x2=ones(M,1)*[1 -1]; x2=x2(:).';
g1=fliplr(x1); g2=fliplr(x2); Ng=length(g1);
x=[x1 zeros(1,M) x2 zeros(1,M) x1 zeros(1,M) x2]; % signal to transmit
Nx=length(x); Nbuffer= min(M*11,Nx); tt=[0:Nbuffer-1]*Ts;
Noise_amp=0.3; x = x + Noise_amp*randn(1,Nx);
xbuffer=zeros(1,Nbuffer); ybuffer=zeros(2,Nbuffer);
for n=1:Nx
xbuffer=[x(n) xbuffer(1:end-1)];
y=[g1; g2]*xbuffer(1:Ng).'*Ts; ybuffer=[ybuffer(:,2:end) y];
subplot(312), plot(tt,ybuffer(1,:)), subplot(313), plot(tt,ybuffer(2,:))
pause(0.01), if n
sir i want to implement matched filter using verilog can you make video regard that how to make
Regrettably, I am not good at verilog.
@ sir we can convert matlab code to hdl verilog code ..
for that we have to write matlab code in detailed without using any inbuilt function so that it can be synthesised
@@HaramiBalak-h2w In fact, xcorr() is the only one MATLAB built-in function that is used in my code and the statements using the function (related y1 and y2) are dispensable so they can be removed with no problem.