commands.sh

mh_metric

all

Calculate and enforce code metrics for MATLAB or Octave code.

More info →

Examples (5)

Print the code metrics for the specified files

mh_metric path/to/file1.m path/to/file2.m ...

Print the code metrics for the specified Octave files

mh_metric --octave path/to/file1.m path/to/file2.m ...

Print the code metrics for the specified directory recursively

mh_metric path/to/directory

Print the code metrics for the current directory

Print the code metrics report in HTML or JSON format

mh_metric --html|json path/to/output_file
made by @shridhargupta | data from tldr-pages