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
Find all elements less than 0 or greater than 10 and replace them with NaN
13063 Solvers
1163 Solvers
658 Solvers
Natural numbers in string form
349 Solvers
Solve a System of Linear Equations
3512 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!