Doxygen Source Code Documentation
HistoryTrace.m File Reference
Go to the source code of this file.
Functions | |
if (nargin==0) | |
end | if (~isfield(Opt,'NoPath')|isempty(Opt.NoPath)) |
end | if (~isfield(Opt,'AFNI_Format')|isempty(Opt.AFNI_Format)) |
end | if (~isfield(Opt,'MaxTraceLevel')|isempty(Opt.MaxTraceLevel)) |
end | if (~isfield(Opt,'PerSig')|isempty(Opt.PerSig)) |
if (N_ST > 1) | |
if (Opt.AFNI_Format) | |
end | if (Opt.MaxTraceLevel > 0) |
end | for (i=strt:-1:stp) |
remove this annoying tset | message (some bug....)[err |
if (Nlines >=2) | |
end | if (tmp) |
Variables | |
function [err, S] | |
useful for keeping a log The trace string is formed as such For example if script MainScript calls at line function F1 which at line calls F2 wich at line calls F3 which at line calls HistoryTrace then the trace string | is |
useful for keeping a log The trace string is formed as such For example if script MainScript calls at line function F1 which at line calls F2 wich at line calls F3 which at line calls HistoryTrace then the trace string F3 will not be shown If MaxTraceLevel is negative then counting is done from the bottom of the stack In the | example |
useful for keeping a log The trace string is formed as such For example if script MainScript calls at line function F1 which at line calls F2 wich at line calls F3 which at line calls HistoryTrace then the trace string F3 will not be shown If MaxTraceLevel is negative then counting is done from the bottom of the stack In the MainScript would not show up Output | Parameters |
useful for keeping a log The trace string is formed as such For example if script MainScript calls at line function F1 which at line calls F2 wich at line calls F3 which at line calls HistoryTrace then the trace string F3 will not be shown If MaxTraceLevel is negative then counting is done from the bottom of the stack In the MainScript would not show up Output function call trace with the line numbers in | parenthesis |
useful for keeping a log The trace string is formed as such For example if script MainScript calls at line function F1 which at line calls F2 wich at line calls F3 which at line calls HistoryTrace then the trace string F3 will not be shown If MaxTraceLevel is negative then counting is done from the bottom of the stack In the MainScript would not show up Output function call trace with the line numbers in machine name and current working directory and date Key | Terms |
useful for keeping a log The trace string is formed as such For example if script MainScript calls at line function F1 which at line calls F2 wich at line calls F3 which at line calls HistoryTrace then the trace string F3 will not be shown If MaxTraceLevel is negative then counting is done from the bottom of the stack In the MainScript would not show up Output function call trace with the line numbers in machine name and current working directory and date Key Bethesda Maryland Define the function name for easy referencing | FuncName = 'HistoryTrace' |
Debug Flag | DBG = 1 |
initailize return variables | err = 1 |
Opt = [] | |
end Opt | NoPath = 1 |
end Opt | AFNI_Format = 0 |
end Opt | MaxTraceLevel = 3 |
end Opt | PerSig = sprintf ('Ziad Saad LBC/NIMH/NIH') |
end [ST, I] = dbstack | |
N_ST = length(ST) | |
stk = sprintf('\n\t') | |
end | strt = N_ST |
stp = max([(N_ST - Opt.MaxTraceLevel + 1) 2]) | |
remove this annoying tset | snl |
remove this annoying tset | Nlines = GetNextLine(smach, 2) |
end | smach = sprintf('Dunno') |
end | c = datevec(now) |
S | |
return |
Function Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Variable Documentation
|
Definition at line 57 of file HistoryTrace.m. |
|
Definition at line 92 of file HistoryTrace.m. |
|
Definition at line 49 of file HistoryTrace.m. |
|
Definition at line 81 of file HistoryTrace.m. |
|
Definition at line 116 of file HistoryTrace.m. |
|
Definition at line 1 of file HistoryTrace.m. |
|
Definition at line 46 of file HistoryTrace.m. |
|
Initial value: HistoryTrace ( Opt) % % [err,S] = HistoryTrace (Opt) % %Purpose: % returns a signature/history sting Definition at line 1 of file HistoryTrace.m. |
|
|
Definition at line 58 of file HistoryTrace.m. |
|
Definition at line 65 of file HistoryTrace.m. |
|
Definition at line 83 of file HistoryTrace.m. |
|
Definition at line 56 of file HistoryTrace.m. |
|
Definition at line 54 of file HistoryTrace.m. |
|
Definition at line 1 of file HistoryTrace.m. |
|
Definition at line 1 of file HistoryTrace.m. |
|
Definition at line 420 of file WriteBrik.m. |
|
Definition at line 117 of file HistoryTrace.m. |
|
Initial value: sprintf ('[%s@%s: %s %s:%s:%s]\n\t%s%s',... Opt.PerSig,smach,... date,... pad_strn(num2str(c(4)), '0', 2, 1),... pad_strn(num2str(c(5)), '0', 2, 1),... pad_strn(num2str(round(c(6))), '0', 2, 1),... pwd, ... stk) Definition at line 106 of file HistoryTrace.m. |
|
Definition at line 89 of file plotsign2.m. |
|
Definition at line 83 of file HistoryTrace.m. |
|
Definition at line 79 of file HistoryTrace.m. |
|
Definition at line 71 of file HistoryTrace.m. |
|
Definition at line 71 of file HistoryTrace.m. |
|
Definition at line 1 of file HistoryTrace.m. |