how to create diagonal matrix while there is condition for each diagonal element

2 views (last 30 days)
Greeting, I wanted to create a diagonal matrix that its elements are conditional as shown in the picture:

Answers (0)

Categories

Find more on Operating on Diagonal Matrices in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!