How to calculate math expressions in matlab

1 vue (au cours des 30 derniers jours)
hang dong
hang dong le 5 Juin 2019
Commenté : hang dong le 5 Juin 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 commentaires
Jan
Jan le 5 Juin 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 le 5 Juin 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 }

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by