How to do this one..??

1 次查看(过去 30 天)
Maruti Patil
Maruti Patil 2015-9-11
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??

采纳的回答

James Tursa
James Tursa 2015-9-11
编辑:James Tursa 2015-9-11
Put the numbers into a vector, sort the vector, then make assignments to your variables from this sorted vector.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by