MATLAB Answers

Probability plot HELP!!!

2 views (last 30 days)
matteo on 15 Jun 2016
Answered: Peter Cook on 15 Jun 2016
I've got two 12x24 matrices, which represent the 12 months of the year and the 24 hours of the day and which are depicted by the circles on the figure below. Now, I'd like to add the plots of the 2 gaussian probabilities as in figure below, and also add the concentric curves around the circles, may I have an help to do that?
thank you for your time.

Accepted Answer

Peter Cook
Peter Cook on 15 Jun 2016
To fit a gaussian contour to your 2d data, you could try fitgmdist.
To plot traces of the mean & max pdfs, compute the mean and std of the measurement of interest (I can't tell from this figure if its supposed to be pressure or temperature) then plot the pdf.
mew = mean(x); sig = std(x);
y = 1/sqrt(2*pi*sig^2)*exp(-(x-mew).^2/2/sig^2);
plot([y y(1)],[x x(1)],'k--')

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by