arrays - How to find out which value is the smallest between outputs in matlab? -
for illustration :
s1=3 s2=6 s3=10
i want determine s# smallest.
i tried next :
s=[s1 s2 s3] low=min(s)
however shows what smallest output, doesn't identify which one of s's smallest. code allows me ?
also, can identify array in s smallest? (1st 2nd or 3rd)
x = [2 4 5 1] [v i] = min(x)
i returns index.
arrays matlab comparison
No comments:
Post a Comment