Hi, I am trying to vectorize following for loop. Need some help??
Show older comments
accumulator=zeros(numThetas,numRhos);
accx_n=zeros(numEdgePixels,numThetas);
for j=1:numThetas
accumulator(j,:)=[0 histcounts(accx_n(:,j),rho)];
end
2 Comments
Walter Roberson
on 26 Jan 2016
We do not know whether rho is a scalar (acting as a bin count) or a vector (acting as edge information)
Parag Patil
on 26 Jan 2016
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!