CODES / common / linecount

Count number of lines in a file

Contents

Syntax

Example

Count number of line in linecount.m:

count=CODES.common.linecount([fileparts(which('CODES.install')) '/+common/linecount.m']);
disp(['There is ' num2str(count) ' lines in linecount.m'])
There is 20 lines in linecount.m

Copyright © 2015 Computational Optimal Design of Engineering Systems (CODES) Laboratory. University of Arizona.

Computational Optimal Design of
Engineering Systems