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

33 vues (au cours des 30 derniers jours)
Gean
Gean le 27 Sep 2022
Commenté : Gean le 27 Sep 2022
I just need to make a 2D plot of this matrix

Réponses (1)

Chunru
Chunru le 27 Sep 2022
Modifié(e) : Chunru le 27 Sep 2022
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 commentaires

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by