I want to find the minimum value.
이전 댓글 표시
Here is command window
>> M=randi(40,3,5)
M =
33 37 12 39 39
37 26 22 7 20
6 4 39 39 33
>> X=M(:)
X =
33
37
6
37
26
4
12
22
39
39
7
39
39
20
33
>> Min=min(X) ??? Index exceeds matrix dimensions.
>> Max=max(X)
Max =
39
>> mean(X)
ans =
26.2000
>> sum(X)
ans =
393
>> min(X) ??? Index exceeds matrix dimensions.
*I was trying to find min value but I can't
How to find the minimum value?*
채택된 답변
추가 답변 (2개)
per isakson
2012년 7월 24일
Try
which min -all
댓글 수: 1
Walter Roberson
2012년 7월 24일
Right. In other words, you have created a variable named "min".
venkat vasu
2012년 7월 24일
0 개 추천
I have tried same value and i got the min value. i'm using 2011b. which version you are using.
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!