How to plot contour map in MATLAB with time on X axis, drop diameter on Y axis with data containing number of drop diameters to show raindrop size distribution?
3 次查看(过去 30 天)
显示 更早的评论
I want to show raindrop size distribution in MATLAB using contour mapping. My datafile contains number of drops. I want to show variation of drop diamtere with time.How to do that in MATLAB with filled contour?
回答(1 个)
KSSV
2022-1-3
Read about scatter.
14 个评论
KSSV
2022-1-4
dia = importdata('Rdrop_dia.txt') ;
Rtime = importdata('Rtime.txt') ;
Rdrop_nos = importdata('Rdrop_nos.txt') ;
% contourf(Rtime,dia,Rdrop_nos)
pcolor(Rtime,dia,Rdrop_nos)
shading interp
colorbar
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/852405/image.bmp)
Kartik Lanjewar
2022-1-4
Thank you for your reply, but the contour map is not looking like the map in the picture shared by me( white background in the map). Kindly suggest for the same.
Kartik Lanjewar
2022-1-4
yes sir. I've tried that and applied to different data, but facing same issue(blue background).
另请参阅
类别
在 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!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)