Filter löschen
Filter löschen

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

19 Ansichten (letzte 30 Tage)
I just need to make a 2D plot of this matrix

Antworten (1)

Chunru
Chunru am 27 Sep. 2022
Bearbeitet: Chunru am 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 Kommentare

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by