How to calculate math expressions in matlab

1 Ansicht (letzte 30 Tage)
hang dong
hang dong am 5 Jun. 2019
Kommentiert: hang dong am 5 Jun. 2019
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 Kommentare
Jan
Jan am 5 Jun. 2019
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 am 5 Jun. 2019
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 }

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by