Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment