How to do this one..??

1 visualizzazione (ultimi 30 giorni)
Maruti Patil
Maruti Patil il 11 Set 2015
Commentato: Maruti Patil il 11 Set 2015
Suppose I have three numbers 6 3 and 9
I want to assign
x1=lowest number
x3=highest number
x2= remaining number
How to do this??

Risposta accettata

James Tursa
James Tursa il 11 Set 2015
Modificato: James Tursa il 11 Set 2015
Put the numbers into a vector, sort the vector, then make assignments to your variables from this sorted vector.

Più risposte (0)

Categorie

Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by