I added six more test cases.
hay
kinda easy
It's easy with function "find"
use "find"
out=find(vec>thresh);
out=find(double(vec>thresh)>0);
function out = findIndices(vec, thresh)
[row,col]=find(vec>thresh);
out = col
end
my solution is incorrect.how would i get the exact solution?
You can ask in the matlab center
Can someone explain this solution to me?
339 Solvers
Project Euler: Problem 9, Pythagorean numbers
285 Solvers
352 Solvers
Convert a vector into a number
503 Solvers
Given a window, how many subsets of a vector sum positive
744 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!