To a Vector,How to make the function "sort" by Simulink?

3 visualizzazioni (ultimi 30 giorni)
[Y, Index] = sort(u,2);
Min_value1 = Y(1);
Min_value2 = Y(2);
Min_i1 = Index(1);
Min_i2 = Index(2);
Max_value1 = Y(3);
Max_value2 = Y(4);
Max_i1 = Index(3);
Max_i2 = Index(4);

Risposte (0)

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by