PEEK

版本 1.0.0.0 (2.1 KB) 作者: Ben Petschel
a simple evaluation monitor utility
466.0 次下载
更新时间 2013/10/29

查看许可证

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);
quad(fpeek,0,pi);
[fq,xq] = peek()

See the help file for further examples.

引用格式

Ben Petschel (2024). PEEK (https://www.mathworks.com/matlabcentral/fileexchange/44120-peek), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Testing Frameworks 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0