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.
1 回表示 (過去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190382/image.jpeg)
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 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!