How to construct matrix for values have index?

2 vues (au cours des 30 derniers jours)
Omar B.
Omar B. le 7 Oct 2019
Commenté : Omar B. le 7 Oct 2019
I'm trying to construct a matrix H as the following pic. How can we write alpha _(-k,k) to get for example alpha _(0,0) or alpha _(-1,3) in Matlab?
Screen Shot 2019-10-06 at 4.13.04 PM.png

Réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 7 Oct 2019
Hi,
In this case, one of the possible easy solutions is to introduce new index series for alpha w.r.t its given values. As you know the index values can't be 0 or negative. Then insert them into H, e.g. H(1,1) = alpha(1);...
  1 commentaire
Omar B.
Omar B. le 7 Oct 2019
I think there's a way to do it just like the author did in the pic.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by