필터 지우기
필터 지우기

prctile how to calculate

조회 수: 39 (최근 30일)
peter huang
peter huang 2021년 12월 29일
댓글: Star Strider 2022년 1월 7일
first of all , my english is not very good if there are many grammatical errors , please include it .
hi,
i don,t know about the method described in the matlab manual for prctile calculation
can you use a set of simple data to explain how the percentile value is calculated?
many thanks
  댓글 수: 2
Rik
Rik 2021년 12월 29일
Do you mean you want to know how to use the prctile function with your data?
If not, why do you want to know how it works? Do you want to write your own version?
peter huang
peter huang 2021년 12월 29일
Yes, i want to know how prctile calculated the quartiles
ex:
s = [1 2 3 4 5 6 7 8 9 ]
Q1 = prctile(s, 25) % 第一四分位
mean = prctile(s, 50)
Q3 = prctile(s, 75)
Q1 = 2.75 Q3 = 7.25
how did Q1 come
is there any formula?
i need to use my paper

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

채택된 답변

Star Strider
Star Strider 2021년 12월 29일
See the prctile documentation section on Algorithms.
.
  댓글 수: 5
Star Strider
Star Strider 2021년 12월 30일
@Rik — Thank you!
See the discussion under Linear Interpolation.
The documentation explains it better than I can.
.
Star Strider
Star Strider 2022년 1월 7일
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

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

추가 답변 (1개)

peter huang
peter huang 2022년 1월 7일
@Star Strider thanks i solve my problem successfully

Community Treasure Hunt

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

Start Hunting!

Translated by