Filter löschen
Filter löschen

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 Ansichten (letzte 30 Tage)
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

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by