How do you find quartiles 1 and 3 using the remainder function?

if rem(len_h,2) == 1 idQ2 = (len_h+1)/ 2 Q2 = h(idQ2);
else idQ2 = (len_h)/2; Q2 = (h(idQ2)+h(idQ2+1))/2;
here is my code for lengths that are odd. This is to fine the median

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSpecialized Power Systems についてさらに検索

タグ

質問済み:

2018 年 3 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by