Superimposing a line plot onto a contour plot using data from excel

I have a data sheel in excel, with a contour plot that outputs an Outlet Temperature of Harvested Milk in a Heat Exchanger as a function of Mass Flow Rate of Cooling Water and Number of Cows.
I also have a line plot of the Minimum Cooling Water Flow Rate to Output Milk at 13C as a Water Flow Rate vs Number of Cows graph.
I would like to import the Contour Plot Data and Line Plot Data from excel to Matlab, then plot the contour plot and superpose the line graph onto the contour plot as an isocontour.
I've attached images for clarity hopefully.

2 件のコメント

dpb
dpb 2020 年 12 月 12 日
Anybody would need data to do much...attach the .xls file or read it and attach a .mat file
Asad Hayat
Asad Hayat 2020 年 12 月 12 日
I've attached the excel file.

サインインしてコメントする。

 採用された回答

KSSV
KSSV 2020 年 12 月 12 日

0 投票

A = xlsread("Contour.xlsx") ;
x = A(1,2:end) ;
y = A(2:end,1) ;
Z = A(2:end,2:end) ;
contourf(x,y,Z)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2019a

質問済み:

2020 年 12 月 12 日

回答済み:

2020 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by