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

39 visualizzazioni (ultimi 30 giorni)
I just need to make a 2D plot of this matrix

Risposte (1)

Chunru
Chunru il 27 Set 2022
Modificato: Chunru il 27 Set 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 Commenti

Accedi per commentare.

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by