program_statistics

PROGRAM_STATISTICS compiles some statistics about a program. A report is printed;
1,9K download
Aggiornato 22 giu 2004

Visualizza la licenza

This simple m-file compiles some statistics about a program. A report is printed; statistics can be optionally returned in a structure.

The statistics include:
* number of files,
* number of functions and GUIDE-related functions,
* number of lines, words and characters,
* number of pages required to print out the whole program.

It features recursive subdirectory search and inclusion of any type of text file (e.g. ".c" to take compiled dll libraries into account).

More on http://ltcmail.ethz.ch/cavin/CSEDBLib.html#PROGSTAT

Example of report:
==================
Number of folders parsed: 44
Number of code folders: 8 (22.125 files per folder)

Number of files: 177
- including 588 functions (3.322 functions per file),
- including 25 GUI dialog callback files made with GUIDE,
(linked with .fig files weighting 657.3438 Kb)
- including 335 GUIDE-related functions,
- including 253 other functions (1.6645 functions per file).

Number of lines: 40600
- distributed in 172234 words,
- including 2774 (6.8325%) separation lines,
- including 8606 (21.197%) lines of comments,
- including 29220 (71.9704%) lines of code.

Number of characters: 1549343
- including 407452 (26.2984%) comment characters,
- including 1141891 (73.7016%) code characters.

To print the whole program, 1014 A4-pages would be necessary.

Cita come

Laurent Cavin (2024). program_statistics (https://www.mathworks.com/matlabcentral/fileexchange/5320-program_statistics), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R13
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0