- read the documentation (e.g. min explains exactly how to do this).
- experiment, try out different ways of doing things, experiment, play with your data, and experiment. Your computer will not explode if you make a mistake.
Find mininmum value across the column
3 次查看(过去 30 天)
显示 更早的评论
How I can find the minimum value across the column for each row. if I have a matrix of [51x4] and i have to compute minimum of the column value in each row.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154007/image.png)
2 个评论
Stephen23
2016-2-4
编辑:Stephen23
2016-2-4
Some tips that will help you write code and solve tasks like this all by yourself:
采纳的回答
Torsten
2016-2-4
From the documentation:
M = min(A,[],dim) returns the smallest elements along dimension dim. For example, if A is a matrix, then min(A,[],2) is a column vector containing the minimum value of each row.
Best wishes
Torsten.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!