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:

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by