Need help with Contour plot

1 view (last 30 days)
Nethravathi S
Nethravathi S on 13 Jun 2022
Commented: Nethravathi S on 13 Jun 2022
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

Accepted Answer

Chunru
Chunru on 13 Jun 2022
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')

More Answers (0)

Community Treasure Hunt

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

Start Hunting!