Hi i am new to mathlab and i am trying to estimate the impulse response. i just decided to estimate using least square method.So can anybody help me with the code to estimate an impulse response using using LEAST SQUARES? thank you.

1 view (last 30 days)
clear all;
close all;
fs=16000;
ts=1/fs;
f=440;
dftsize=256;
t=0:ts:2;
toplay=[zeros(1,size(t,2)/2) 1 zeros(1,size(t,2)/2)];
[simin,nbsecs,fs] = initparams(toplay,fs,t);
sim('recplay');
out=simout.signals.values;
x=double(out);
stem(x)
freqz(x)

Answers (0)

Categories

Find more on Measurements and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!