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에 대해 자세히 알아보기

제품

질문:

2015년 9월 11일

댓글:

2015년 9월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by