a simple evaluation monitor utility
Updated 29 Oct 2013

View License

PEEK is a general-purpose evaluation monitor that records and outputs any input values that are passed to it. This is useful for monitoring the function evaluations performed by general numerical routines such as QUAD or FMINSEARCH.

PEEK works in much the same way as SOW/REAP in Mathematica.

Basic example:

f = @(x)sin(x);
fpeek = @(x)peek(f(x),x);
[fq,xq] = peek()

See the help file for further examples.

Cite As

Ben Petschel (2024). PEEK (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Testing Frameworks in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes