How to construct matrix for values have index?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241571/Screen%20Shot%202019-10-06%20at%204.13.04%20PM.png)
0 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 7 Okt. 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);...
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!