How can i fine the convolution of a linear system with given input
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
I have an adc with linear transfer function h(n)in time domain , and input to this is x(n), a sampled sine wave ,output of adc should be linear convolution of h(n) and x(n).when I convert output into frequency domain using fft, i am getting the amplitude 4 times higher then the input, whereas Gain of ADC is 1.Anyone can please help in this regard
2 commentaires
  John D'Errico
      
      
 le 15 Fév 2015
				Show what you have done? How can anyone know what you did wrong otherwise?
  Dr Bhawana Garg
 le 17 Fév 2015
				
      Modifié(e) : Dr Bhawana Garg
 le 17 Fév 2015
  
			
		Réponses (1)
  Kamal Hussain
 le 7 Avr 2018
        
      Modifié(e) : Kamal Hussain
 le 7 Avr 2018
  
      here i have written a code for linear convolution using tabular method.
%linear convolution using tabular method
x=[1 2 3 4];
y=[1 2 3 4];
shift=0;
lin_conv=[zeros(1,length(x)+length(y)-1)];
for i=1:length(y)
    shiftedd=shiftFTN(x,length(x),length(y),shift); 
    lin_conv=lin_conv + y(i).*shiftedd
    shift=shift+1;
end
%i have used a self made function shiftFTN to shift the sequence to the right by 1.
function [Y]=shiftFTN(A,len_A,len_B,shift)
Y=zeros(1,len_A+len_B -1);
Y(shift+1:end)=[A(1:end),zeros(1,length(Y)-(shift+len_A))];
Voir également
Catégories
				En savoir plus sur Transforms dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



