Commit daeb57b6 authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

misc.subsurf: detailed info in assertion for same data size when using 'compareWith' option

parent 8b7a4ae1
......@@ -50,7 +50,8 @@ end
doCompare = ~isempty(myParser.Results.compareWith);
if doCompare
dataReference = permute(myParser.Results.compareWith, [restDim, xDim, yDim]);
assert(isequal(size(dataReference), size(data)));
assert(isequal(size(dataReference), size(data)), ...
"size(data)="+num2str(size(data))+"~=size(compareWith)="+num2str(size(dataReference)));
end
%% plot
......
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