필터 지우기
필터 지우기

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

조회 수: 19 (최근 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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by