How to calculate math expressions in matlab

조회 수: 1 (최근 30일)
hang dong
hang dong 2019년 6월 5일
댓글: hang dong 2019년 6월 5일
How can we calculate
when know n=8, P = [ 1 2 3 4 0 7 6 5], ci is the number of elements of the set { j > i, pj < pi }
please help me!
  댓글 수: 2
Jan
Jan 2019년 6월 5일
Neither j, nor pj, nor pi occur in this formula. The right hand side does not depend on P. The value of c_i is not explained.
Please post, what you have tried so far and ask a specific question. Define all inputs of the formula, and nothing else, to reduce the level of confusion.
hang dong
hang dong 2019년 6월 5일
i is the index of elements of P,
P_ j is the value of P at position j
c_i is the number of elements of P satisfying the condition
{ j > i, p_j < p_i }

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by