23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

cputime<br />

2cputime<br />

Purpose Elapsed CPU time<br />

Syntax cputime<br />

Description cputime returns the total CPU time (in seconds) used by <strong>MATLAB</strong> from the<br />

time it was started. This number can overflow the internal representation and<br />

wrap around.<br />

Examples The following code returns the CPU time used to run surf(peaks(40)).<br />

2-346<br />

t = cputime; surf(peaks(40)); e = cputime-t<br />

e =<br />

0.4667<br />

See Also clock, etime, tic, toc

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!