minimum of a matrix
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi everyone,
In my code I have 3 dimensional matrices and I need the overall minumum of this matrix.
Right now I use : min(min(min(matrix)));
This works fine, but I wonder if there is a function in MATLAB which calculates the minimum of the entire matrix.
Ellen
0 件のコメント
採用された回答
  Andreas Goser
    
 2012 年 3 月 21 日
        The "trick" is not in using a certain command, but to know that your 3 dimensional matrix can be addressed as a vector. Example:
a=rand(2,2,2)
a(:)
min(a(:))
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

