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 Center 및 MATLAB 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 |