convolution of 2 signals
    9 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Li Hui Chew
 el 24 de Jun. de 2021
  
    
    
    
    
    Respondida: Constantino Carlos Reyes-Aldasoro
      
 el 13 de Jul. de 2021
            2 signals was given:
x[n]={(1/2)n}, 0<= n <= 4        0, elsewhere
h[n]={1}, -2<= n <= 2            0, elesewhere 
How to compute the convolution using "subplot"?
I only know the function conv(), is there any other solution for this question?
0 comentarios
Respuestas (1)
  Constantino Carlos Reyes-Aldasoro
      
 el 13 de Jul. de 2021
        You are confusing functions. conv is used to obtain the convolution, subplot is used to divide a figure and then plot inside each subregions. For example
time=0:0.1:10;
x=cos(time);
y=sin(2*time);
z=conv(x,y);
figure
subplot(3,1,1)
plot(x)
subplot(3,1,2)
plot(y)
subplot(3,1,3)
plot(z)
Hope this solves your question.
0 comentarios
Ver también
Categorías
				Más información sobre Subplots en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


