Hi, i have created a general code to display Temperature values and then plot the geothermal gradient. My function will use certain input variables and will plot the output. I have 5 plots and want to create a table in matlab to display all data.

조회 수: 2 (최근 30일)
My code follows below. Please help me in creating a table for all data and if possible how do i change the colour of each plot.
function T=geo_therm (K,A,Q,d,z) T = (-A*z.^2)/(2*K) + ((Q + A*d)/K)*(z);
%%conditions for depth z = [0:2:50]; %%stop at 50 z; km
%%standard model parameters %K units in Wm^-1 C^-1 %A units in uWm^-3 %Q units in Wm^-2 %d units in km
%%plot the result plot(T, z,'-.or'); set(gca, 'YDir','reverse'); end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by