- 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
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Arsal15
el 4 de Feb. de 2016
Comentada: Torsten
el 4 de Feb. de 2016
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.
2 comentarios
Stephen23
el 4 de Feb. de 2016
Editada: Stephen23
el 4 de Feb. de 2016
Some tips that will help you write code and solve tasks like this all by yourself:
Respuesta aceptada
Torsten
el 4 de Feb. de 2016
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 comentarios
Torsten
el 4 de Feb. de 2016
You mean
[row col] = find(dist_mat < 5)
?
Best wishes
Torsten.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!