Extracting element values from a matrix in Simulink

I have a covariance matrix P(k) that's [2x2] I want to read the values of the diagonal elements with a scope. I was wondering how this could be done?
Best Regards,
Shawn Daniel

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 10 日
編集済み: Azzi Abdelmalek 2015 年 8 月 10 日

0 投票

You can use a selector block

1 件のコメント

Shawn Daniel
Shawn Daniel 2015 年 8 月 11 日
I'm sorry for restating the question, but for a four by four matrix, I was wondering how to setup the selector so that I could output the diagonal elements as a [1x4] or [4x1]?
Best,
Shawn Daniel

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

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by