can you give me the basic simple code for this figure?
Afficher commentaires plus anciens

where r[k]=input k=1,2,3,4....k f(0),f(1),....f(k-1) are coefficients y[k]=output
2 commentaires
the cyclist
le 19 Août 2013
Modifié(e) : the cyclist
le 19 Août 2013
pinak parida
le 21 Août 2013
Réponses (1)
Iain
le 21 Août 2013
Are you working in simulink, or matlab?
r = [zeros(1,number_of_delays-1) value1 value2 value3 .... ];
for k = number_of_delays:numel(r)
y(k) = f0*r(k) + f1*r(k-1) + f2*r(k-2) + f3*r(k-3) ... ;
end
Catégories
En savoir plus sur Signal Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!