Need help with Contour plot
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a matrix which is given at the end.
I need to plot contour plot for this like: kindly give inputs
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1030445/image.png)
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!