Need help with Contour plot
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I have a matrix which is given at the end.
I need to plot contour plot for this like: kindly give inputs

PV A B C D
1 0.975744 0.294546 0.192422 0.155833
2 0.956922 0.172609 0.112765 0.089115
3 0.950648 0.131963 0.086212 0.066875
4 0.947511 0.11164 0.072936 0.055755
5 0.945629 0.099447 0.06497 0.049083
6 0.944374 0.091318 0.05966 0.044635
7 0.943478 0.085511 0.055867 0.041458
8 0.942805 0.081156 0.053022 0.039075
9 0.942283 0.077769 0.050809 0.037222
10 0.941864 0.075059 0.049039 0.035739
댓글 수: 0
채택된 답변
Chunru
2022년 6월 13일
x = [1 0.975744 0.294546 0.192422 0.155833
2 0.956922 0.172609 0.112765 0.089115
3 0.950648 0.131963 0.086212 0.066875
4 0.947511 0.11164 0.072936 0.055755
5 0.945629 0.099447 0.06497 0.049083
6 0.944374 0.091318 0.05966 0.044635
7 0.943478 0.085511 0.055867 0.041458
8 0.942805 0.081156 0.053022 0.039075
9 0.942283 0.077769 0.050809 0.037222
10 0.941864 0.075059 0.049039 0.035739 ];
x = x(:, 2:end);
contourf(x', [0:.1:1], 'ShowText', 'on')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
