Can I make a surface or colormap with latitude, longitude, and concentration using MATLAB? (photo example)
3 次查看(过去 30 天)
显示 更早的评论
Hi there,
I am assisting in some research based on climate model outputs. I have datasets for various values (e.g. CO2 concentration, water vapor concentration) at various latitude and longitudes (of systematic intervals). I also need to create similar colored maps for latitude vs. altitude. [Picture examples are linked to below.] I basically have the datasets in txt files that are about a 20 x 20 matrix based on the lat/long intervals.
Horizontal - latitude / longitude / concentration figure: http://www.aaronburdick.com/Other/Randomfor-personal-use/18570968_kxb4jj#1434287232_qFJmFCR
Vertical - latitude / altitude / concentration figure: http://www.aaronburdick.com/Other/Randomfor-personal-use/18570968_kxb4jj#1434287234_sqBQmtW
Can I create these graphs using MATLAB? How should I go about doing this?
Thank you so much!
Aaron
0 个评论
采纳的回答
Patrick Kalita
2011-8-17
[x,y,z] = peaks;
pcolor(x,y,z);
Based on your example pictures, you may also want to do this:
shading interp
[x,y,z] = peaks;
pcolor(x,y,z);
shading interp
hold on
contour(x,y,z, [-2, 2], 'EdgeColor', 'k');
2 个评论
Patrick Kalita
2011-8-19
I was just using the PEAKS function to generate sample data. Don't use that in your actual plot. Substitute your own data for x, y, and z.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!