Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Krause
zipmask
Commits
4352bbde
Commit
4352bbde
authored
May 04, 2020
by
Michael Krause
🎉
Browse files
Add backwards compatibility with strings
parent
c08e66d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
zipmask_pack.m
View file @
4352bbde
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment