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 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!