debugData( varargin )

버전 1.0.0.0 (2.48 KB) 작성자: yonathan nativ
debugging tool for complex enviorments
다운로드 수: 31
업데이트 2016/7/31

라이선스 보기

This function changed my life :)
This function allows you to save as many variables along your run from any point in the code.

When starting the run, clear all data in debugData by calling debugData('reset')
During the run call debugData from any point in the code to store data, the function will concatenate data automatically.
At the end of the run call debugData with debugData('plot') to plot all its content
You can extract a specific variable by using: var = debugData('varName');
You can view which variables are stored by calling variables = debugData('fields');

The function supports the saving of structs and arrays.
It concatenates the data in rows.

Example:
a = randn(100,1);
b = zeros(size(a));
debugData('reset')
for n = 2 : numel(a)
b(n) = b(n-1) + a(n);
debugData('ab', [a(n) b(n)]);
end
debugData('plot')

인용 양식

yonathan nativ (2026). debugData( varargin ) (https://kr.mathworks.com/matlabcentral/fileexchange/58459-debugdata-varargin), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Debugging and Analysis에 대해 자세히 알아보기
태그 태그 추가
버전 게시됨 릴리스 정보
1.0.0.0