Concentration vs distance plot
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have several sets of data. Each set is a list of numbers which is the distance from 0 that a particle has travelled. Each set is associated with a finite time, so set 1 is the distances at T=0; set 2 is the distances at T=1 and so on. The size of each set is the total number of particles and the size of each set is the same.
I want to plot a concentration vs distance line.
For example, if there are 1000 particles (the size of the sets); at time T=0 then the plot will just be a straight line x=0 because all the particles are at 0 (the set contains 1000 zeroes). So the concentration at x=0 =100% and is 0% at all other distances
At T=1 and T=2 and so on, the distances will increase (generally) so I might have sets that look like this: (just an example)
T1 = (1.1,2.2,3.0,1.2,3.2,2.3,1.4...) etc T2 = (2.9,3.2,2.6,4.5,4.3,1.4,5.8...) etc
it is likely that each number in each set is unique in that set
The aim is to have several plots (I can eventually plot them on on graph) that show the concentration on the y axis and the distance on the x-axis. I imagine that as T increases T0, T1, T2 then the plot will become flatter until the concentration is roughly the same everywhere.
The x-axis (distance) has a fixed maximum which is the same for each plot. So, for example, some sets will have a curve that hits zero on the y axis (concentration) at a low value for x (distance) but as the time increases, I envisage a nearly flat line where the line does not cross the x-axis (concentration is non-zero everywhere)
I have tried this with a histogram, but it is not really giving the results I want. I would like a line plot but obviously have to try and put the distances into bins.
thank you W
2 Kommentare
dpb
am 8 Aug. 2016
Bearbeitet: dpb
am 8 Aug. 2016
What about computing an average position and the concentration would be number in an area at each time? Could use fixed radii and therefore increasing areas or fixed areas and thus decreasing change in radial position by group for the "binning".
Attaching a file w/ some representative data would let any here inclined to dabble at least try some things out...
Image Analyst
am 8 Aug. 2016
Why isn't the histogram working? You can specify the bin edges and you can plot as a line plot instead of a bar plot. You could plot multiple histograms with the waterfall() function. Why won't that work?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!