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