Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

can someone solve this?

2 visualizaciones (últimos 30 días)
AAYUSH MARU
AAYUSH MARU el 9 de Abr. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
impulse-----> h1 [n] = (0.8)n.u[n] ---------> h2 [n] = (0.3)n.u[n] ------>???
these are my two systems i have to get impulse response of the total system?
clc;
clear all;
h1n=[1,0.8,0.64,0.51,0.4096,0.327,0.262,0.209,0.167];
n= [ 0 1 2 3 4 5 6 7 8 9];
x = [ 1 1 1 1 1 1 1 1 1];
y= conv(h1n,x);
ny= 0: length(y);
subplot(2,1,1);
stem(ny,y);
i tried this code but i am getting error in length of stem

Respuestas (1)

Chidvi Modala
Chidvi Modala el 15 de Abr. de 2020
stem(ny,y) plots the data sequence, y, at values specified by ny where ny and y should be of equal length. But in the provided code ny is a 1x18 vector where as y is a 1x17 vector. So, you can replace ny= 0: length(y); with ny= 0: length(y)-1;

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by