I have a 2x2 matrix with values [0.5694 -0.8220; -0.8220 -0.5694] How do I plot this matrix?

40 ビュー (過去 30 日間)
Gean
Gean 2022 年 9 月 27 日
コメント済み: Gean 2022 年 9 月 27 日
I just need to make a 2D plot of this matrix

回答 (1 件)

Chunru
Chunru 2022 年 9 月 27 日
編集済み: Chunru 2022 年 9 月 27 日
x = [0.5694 -0.8220; -0.8220 -0.5694]
x = 2×2
0.5694 -0.8220 -0.8220 -0.5694
heatmap(x);
figure
plot(x(:, 1), x(:,2)) % take 1st column as x and 2nd column as y (interpretation is up to you)
  3 件のコメント
Chunru
Chunru 2022 年 9 月 27 日
See the updated.
Gean
Gean 2022 年 9 月 27 日
Thank you very much.

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

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by