COUNTCODE

版本 1.0.0.0 (1.7 KB) 作者: Jos (10584)
count coded and commented lines in an m-file
2.6K 次下载
更新时间 2006/2/28

查看许可证

N = COUNTCODE(MFILE) returns the number of code lines in MFILE. MFILE should be a string containing a name to an existing m-file or asv-file.

[N,M] = COUNTCODE(MFILE) also returns the number M of commented lines in the file. [N,M,S,Q] = ... further returns a cell array of strings S containing all lines of the file (code and comment, but excluding empty lines) and a logical vector Q with ones for the comment lines of S.

Note: this file use <regexp>

引用格式

Jos (10584) (2025). COUNTCODE (https://ww2.mathworks.cn/matlabcentral/fileexchange/10175-countcode), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0