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

Greeting, I wanted to create a diagonal matrix that its elements are conditional as shown in the picture:

2 件のコメント

Fabio Freschi
Fabio Freschi 2019 年 11 月 10 日
Can you provide more insight about the problem, such as the meaning of k,j,y...
Ali Esmaeilpour
Ali Esmaeilpour 2019 年 11 月 10 日
編集済み: Ali Esmaeilpour 2019 年 11 月 10 日
y(k+j) and yhat(k+j) are integers and lambda is a symbol

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeOperating on Diagonal Matrices についてさらに検索

製品

リリース

R2018b

質問済み:

2019 年 11 月 10 日

編集済み:

2019 年 11 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by