You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I obtained an error message, when applying the routine op_averaging to a water signal with only 1 average.
"Output argument "out" (and maybe others) not assigned during call to "op_averaging".
The corresponding code in op_averaging.m reads:
function out=op_averaging(in);
if in.flags.averaged || in.averages<2
%DO NOTHING
disp('WARNING: No averages found. Returning input without modification!');
return;
end
if in.dims.averages==0
%DO NOTHING
disp('WARNING: No averages found. Returning input without modification!');
out=in;
return;
else
...
I guess in the first if-statement that checks if # of averages is below 2, the line
out=in;
is missing, which in my case leads to the error message mentioned above.
Adding the line
out=in;
fixed this error.
The text was updated successfully, but these errors were encountered:
Hi,
I obtained an error message, when applying the routine op_averaging to a water signal with only 1 average.
"Output argument "out" (and maybe others) not assigned during call to "op_averaging".
The corresponding code in op_averaging.m reads:
function out=op_averaging(in);
if in.flags.averaged || in.averages<2
%DO NOTHING
disp('WARNING: No averages found. Returning input without modification!');
return;
end
if in.dims.averages==0
%DO NOTHING
disp('WARNING: No averages found. Returning input without modification!');
out=in;
return;
else
...
I guess in the first if-statement that checks if # of averages is below 2, the line
out=in;
is missing, which in my case leads to the error message mentioned above.
Adding the line
out=in;
fixed this error.
The text was updated successfully, but these errors were encountered: