if we plot the below values will get like attached pic.
how to rotate the axis ? help me
-0.0872 -0.0865 0.0839 -0.0696
-0.0798 -0.0273 -0.0449 0.0799
-0.0608 0.0644 -0.0540 -0.0690
-0.0328 0.0795 0.0809 0.0398

 채택된 답변

Star Strider
Star Strider 2021년 9월 28일

0 개 추천

I am not certain what you intend by ‘rotate the axis’. It is a(4x4) matrix, so if you want to plot the transpose, just plot the transpose —
M = [-0.0872 -0.0865 0.0839 -0.0696
-0.0798 -0.0273 -0.0449 0.0799
-0.0608 0.0644 -0.0540 -0.0690
-0.0328 0.0795 0.0809 0.0398];
figure
plot(M)
grid
title('Original')
figure
plot(M.')
grid
title('Transposed')
.

댓글 수: 4

Arun Gowda
Arun Gowda 2021년 9월 28일
I WANT THE GRAPH LIKE THIS
Try this —
M = [-0.0872 -0.0865 0.0839 -0.0696
-0.0798 -0.0273 -0.0449 0.0799
-0.0608 0.0644 -0.0540 -0.0690
-0.0328 0.0795 0.0809 0.0398];
figure
hold on
for k = 1:size(M,2)
plot(M(:,k),(1:4))
end
hold off
grid
title('Original Transposed Plot')
Experiment to get different results.
.
Arun Gowda
Arun Gowda 2021년 9월 28일
thank you
Star Strider
Star Strider 2021년 9월 28일
As always, my pleasure!
.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2021년 9월 28일

댓글:

2021년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by