Plotting a temperature Depth Profile

2 次查看(过去 30 天)
How would i go about importing 4 separate data sets of depth and temperature from excel, and combining them all into 1 graph with temperature on the x axis and depth on the y axis. However i need the y axis to start from the top and the x axis to be on the top as well. Been having a go at this for quite a while now without any luck so far!

采纳的回答

David Hill
David Hill 2019-11-11
A = readmatrix('name.xls');%I will assume temperature is in the first column and depth in the second column
B = readmatrix('name.xls');
C = readmatrix('name.xls');
D = readmatrix('name.xls');
hold on
plot(A(:,1),A(:,2));
plot(B(:,1),B(:,2));
plot(C(:,1),C(:,2));
plot(D(:,1),D(:,2));
a= gca;
a.XAxisLocation='top';
This should get you going along the righ path.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by