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?
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
0 votes
Read about scatter.
14 Comments
Kartik Lanjewar
on 3 Jan 2022
KSSV
on 3 Jan 2022
Any pictorial example? Show us your data.
Kartik Lanjewar
on 3 Jan 2022
Kartik Lanjewar
on 3 Jan 2022
Kartik Lanjewar
on 4 Jan 2022
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
KSSV
on 4 Jan 2022
It depends on how your data is. Is the attached plot is for the given data?
Kartik Lanjewar
on 4 Jan 2022
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
KSSV
on 4 Jan 2022
May be you need to discard certain values.
Kartik Lanjewar
on 4 Jan 2022
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!