How to get the min and max values of a randomized matrix?
12 次查看(过去 30 天)
显示 更早的评论
Hellow. I'm currently making a 20x20 matrix where each value of the matrix is a random number between 0-128, as well as fincing the largest and smallest values generated by said matrix. However, whenever I use the M=min/max(A) functions, my min/max values keep remaining the same (97 for min and 116 for max) despite the matrix generating numbers greater and smaller than those two values. Could someone explain why this is happening?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 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!