How to do this one..??
1 次查看(过去 30 天)
显示 更早的评论
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??
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!