How to calculate math expressions in matlab

1 visualizzazione (ultimi 30 giorni)
hang dong
hang dong il 5 Giu 2019
Commentato: hang dong il 5 Giu 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 Commenti
Jan
Jan il 5 Giu 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 il 5 Giu 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 }

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by