How to do this one..??
조회 수: 2 (최근 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!