function z = lastzerorow(a)
[~,c]=size(a);
k=zeros(1,c);
for ii=1:c
m=find(a(:,ii)==0)
k(ii)=length(m);
end
z=k;
end
why this isn't working???
While evaluating the solution, the server encountered an error caused by temporary unavailability of MATLAB Service. Wait a few minutes for the MATLAB Service to return, and then rescore. I wanted to participate in the Cody challenge but this is impossible.
wonderful
Good
Given a window, how many subsets of a vector sum positive
757 Solvers
Construct an index vector from two input vectors in vectorized fashion
196 Solvers
232 Solvers
Number of digits in an integer
342 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
304 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!