Rank: 372356 based on 0 downloads (last 30 days) and 0 file submitted
photo

George Berken

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by George
Updated File Comments Rating
12 Dec 2013 Calculate size CALCULATESIZE calculates the size of a MATLAB file for use in the game Cody Author: Santosh Kasula

function y = nearZero(x)
y = [];
w = [x(2) x x(end-1)];
J=0;
for I = 2:(length(w)-1)
if ((w(I)~=0)&&((w(I-1)==0)||(w(I+1)==0)))
J = J + 1;
v(J) = w(I);
end
end
y = max(v');
end

Contact us