How to sort the Greatest or least numerical value?
Show older comments
Hello,
I am trying to compute these simple fraction in Matlab.
x=2709/1024
y=10583/4000
w=2024/765
z=sqrt(7)
How can I run these in the editor and have it display the least or greatest number in command window?
thank you
1 Comment
John D'Errico
on 8 Jan 2015
Time to learn to use vectors. Why do you think they call it MATLAB? That mat stands for matrix. Use them.
help sort
help max
help min
Answers (0)
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!