debugData( varargin )

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://jp.mathworks.com/matlabcentral/fileexchange/58459-debugdata-varargin), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2016a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDebugging and Analysis についてさらに検索
タグ タグを追加
バージョン 公開済み リリース ノート
1.0.0.0