You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
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?
2 views (last 30 days)
Show older comments
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?
Answers (1)
KSSV
on 3 Jan 2022
Read about scatter.
14 Comments
KSSV
on 4 Jan 2022
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
Kartik Lanjewar
on 4 Jan 2022
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.
KSSV
on 4 Jan 2022
So that is the plot from the data. Also try contourf; I have commented that line.
Kartik Lanjewar
on 4 Jan 2022
yes sir. I've tried that and applied to different data, but facing same issue(blue background).
See Also
Categories
Find more on Contour Plots 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!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)