Commit 4352bbde authored by Michael Krause's avatar Michael Krause 🎉
Browse files

Add backwards compatibility with strings

parent c08e66d9
......@@ -24,11 +24,11 @@ if ( length(d_mat) ~= length(d_mask) || ...
end
if length(d_mat) ~= 3
error("Only implemented for 3D arrays, yet");
error('Only implemented for 3D arrays, yet');
end
if all(all(all(mask == 0)))
warning("Mask is empty");
warning('Mask is empty');
out.data = [];
out.mask = [];
out.dimension = size(matrix);
......
Markdown is supported
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