Filter löschen
Filter löschen

How to do this one..??

1 Ansicht (letzte 30 Tage)
Maruti Patil
Maruti Patil am 11 Sep. 2015
Kommentiert: Maruti Patil am 11 Sep. 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??

Akzeptierte Antwort

James Tursa
James Tursa am 11 Sep. 2015
Bearbeitet: James Tursa am 11 Sep. 2015
Put the numbers into a vector, sort the vector, then make assignments to your variables from this sorted vector.

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by