how to use function "find" over matrices
显示 更早的评论
Suppose x = rand(1e5,1e5);
I want to find the lowest number in each column of x without using for loop.
Is it possible?
采纳的回答
更多回答(1 个)
David Hill
2020-4-9
min(x);
3 个评论
parham kianian
2020-4-9
编辑:parham kianian
2020-4-9
David Hill
2020-4-10
x = rand(1e4);
a = x.*(x>.2&x<.25);
b=arrayfun(@(y)a(find(a(:,y),1),y),1:size(a,2));
parham kianian
2020-4-10
类别
在 帮助中心 和 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!