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 日

0 投票

Put the numbers into a vector, sort the vector, then make assignments to your variables from this sorted vector.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および 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!

Translated by