How to do this one..??

2 ビュー (過去 30 日間)
Maruti Patil
Maruti Patil 2015 年 9 月 11 日
コメント済み: 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.
  1 件のコメント
Maruti Patil
Maruti Patil 2015 年 9 月 11 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by