calculate total percentage on either side of histogram

조회 수: 1 (최근 30일)
aine gormley
aine gormley 2018년 12월 4일
답변: the cyclist 2018년 12월 5일
Hi, is it possible to calculate the total percentage on either side of histogram - like in the digram below? NB: I dont need to place the value on the chart - or get the percentage for the individual bars, just the percent for either side.
  댓글 수: 8
aine gormley
aine gormley 2018년 12월 5일
hi - the only variable is temperature change (ie the slope from a linear regression over time), so I think that is ok?
dpb
dpb 2018년 12월 5일
Ok, yes, that should work just fine.
So then slope_TSA was an array and hence the expression
slopes=slope_TSA(:);
maybe? If that were so and the previous was done using the array, that could be the cause of the unexpected answer, perhaps.
I was just trying to figure out why you got a nonsensical answer the one time...it's not terribly important if you now do have the correct result, just "inquiring minds" and all... :)

댓글을 달려면 로그인하십시오.

답변 (1개)

the cyclist
the cyclist 2018년 12월 5일
Taking a very different tack ... maybe you'd find the cdfplot command useful?

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by