Commit 14ef1e9a authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

misc.Gain: Bugfix for isempty()

parent 532c63d3
......@@ -216,9 +216,13 @@ classdef Gain < handle & matlab.mixin.Copyable
function result = isempty(obj)
result = false(size(obj));
for it = 1 : numel(obj)
result(it) = isempty(obj(it).value);
end
if isempty(result) % empty size of obj
result = true;
else
for it = 1 : numel(obj) % non empty size of obj, so check value
result(it) = isempty(obj(it).value);
end
end
end % isempty
function verifySizes(obj)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment