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.

추가 답변 (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