Effacer les filtres
Effacer les filtres

Division with negative powers

1 vue (au cours des 30 derniers jours)
wqdw qdwdqww
wqdw qdwdqww le 20 Mar 2018
Commenté : wqdw qdwdqww le 20 Mar 2018
So let's say the first polynomial is [ 1 0 1] and I divide it to [1 4 4 4 3] and the results should be [0 0 1 -4 13 -40 121 -364] the first 2 zeros are because x^0 and x^-1 have the quotient 0. How can this be done in matlab? deconv function only returns x at positive powers

Réponse acceptée

C.J. Harris
C.J. Harris le 20 Mar 2018
u = [0 0 1 0 1];
v = [1 4 4 4 3];
Result = filter(u,v,[1, zeros(1,7)])
ans =
0 0 1 -4 13 -40 121 -364
  1 commentaire
wqdw qdwdqww
wqdw qdwdqww le 20 Mar 2018
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 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!

Translated by