How to construct matrix for values have index?
3 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Sulaymon Eshkabilov
2019-10-7
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);...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!