Probability plot HELP!!!

조회 수: 2 (최근 30일)
matteo 2016년 6월 15일
답변: Peter Cook 2016년 6월 15일
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.

채택된 답변

Peter Cook
Peter Cook 2016년 6월 15일
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--')

추가 답변 (0개)


Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by