Rank: 3868 based on 9 downloads (last 30 days) and 1 file submitted
photo

Diffy D

E-mail
Company/University
Ecole des Mines de Nantes

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Diffy
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 May 2009 slocdir Go recursively into folders to count the .m lines of code Author: Diffy D line count files dire... 9 2
  • 3.0
3.0 | 1 rating
Comments and Ratings by Diffy View all
Updated File Comments Rating
05 May 2009 slocdir Go recursively into folders to count the .m lines of code Author: Diffy D

BugWarning :

at line :
 warning( strcmp( list(i).name,'file or folder skipped') );

replace by :
 warning( strcat( list(i).name,'file or folder skipped') );

it STRCAT not STRCMP

05 May 2009 sloc Count lines of source code for an M-file Author: Raymond Norris

I made a little script to list all the .m recursively and count the number of lines with sloc, you can fount it at : http://www.mathworks.com/matlabcentral/fileexchange/24000

Bye

Comments and Ratings on Diffy's Files View all
Updated File Comment by Comments Rating
22 Mar 2011 slocdir Go recursively into folders to count the .m lines of code Author: Diffy D Rongère, Francois

Hi,

You should change your line :

 count = count + slocdir(strcat(directoryPath,'//',list(i).name));

by :

count = count + slocdir(fullfile(directoryPath,list(i).name));

in order your script being portable over non-windows machines...

Thanks for the file.

François.

05 May 2009 slocdir Go recursively into folders to count the .m lines of code Author: Diffy D D, Diffy

BugWarning :

at line :
 warning( strcmp( list(i).name,'file or folder skipped') );

replace by :
 warning( strcat( list(i).name,'file or folder skipped') );

it STRCAT not STRCMP

Top Tags Applied by Diffy
line count files directory folder
Files Tagged by Diffy
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 May 2009 slocdir Go recursively into folders to count the .m lines of code Author: Diffy D line count files dire... 9 2
  • 3.0
3.0 | 1 rating

Contact us at files@mathworks.com