- Bin the data yourself (using the same set of edges) using two calls to histcounts.
- Normalize each set of bins using the combined data from both sets of bins.
- Specify the 'BinEdges' and 'BinCounts' inputs in two calls to polarhistogram with a different polaraxes for each, one call per set of data.
Normalizing a polar histogram
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Denis Wolff
el 16 de Mayo de 2017
Comentada: Denis Wolff
el 17 de Mayo de 2017
Hello,
I have two groups with distributions of phase angles which I want to plot in two seperate polar histograms, using the matlab function 'polarhistogram' (2017a). Moreover, I want to normalize the histograms by the number of observations across both groups. Normalizing each histogram by the number of observations in each group seperately is straightforward by inputting 'normalization', 'probability'. But although it sounds simple, I have found no way yet of normalizing each polar plot by the total number of observations.
For normal histograms I know a trick for this (there one can use the output of 'hist' first, change it, and input it into 'bar'), however this does not work for this function.
I would be happy if anyone can suggest a solution for it.
0 comentarios
Respuesta aceptada
Steven Lord
el 16 de Mayo de 2017
I haven't tried this, but if I understand what you're trying to do I believe it will work.
Más respuestas (0)
Ver también
Categorías
Más información sobre Polar Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!