how to create diagonal matrix while there is condition for each diagonal element
1 次查看(过去 30 天)
显示 更早的评论
Greeting, I wanted to create a diagonal matrix that its elements are conditional as shown in the picture:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247620/image.jpeg)
2 个评论
Fabio Freschi
2019-11-10
Can you provide more insight about the problem, such as the meaning of k,j,y...
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!