Skip to content

Commit

Permalink
[feat] support integer typed elem
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Dec 2, 2024
1 parent 7d62780 commit 7d7079b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plotmesh.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
hasopt = 0;
for i = 1:length(varargin)
if (ischar(varargin{i}))
if (~isempty(regexp(varargin{i}, '[x-zX-Z]')) && ~isempty(regexp(varargin{i}, '[><=&|]')))
if (~isempty(regexp(varargin{i}, '[x-zX-Z]', 'once')) && ~isempty(regexp(varargin{i}, '[><=&|]', 'once')))
selector = varargin{i};
if (nargin >= i + 1)
opt = varargin(i + 1:end);
Expand All @@ -84,7 +84,7 @@
if (length(faceid) == 1)
face = varargin{1};
elem = [];
elseif (any(hist(varargin{1}(:, 4), unique(varargin{1}(:, 4))) > 50))
elseif (any(hist(varargin{1}(:, 4), double(unique(varargin{1}(:, 4)))) > 50))
face = varargin{1};
elem = [];
else
Expand Down Expand Up @@ -118,7 +118,7 @@
if (length(faceid) == 1)
face = varargin{1};
elem = [];
elseif (any(hist(varargin{1}(:, 4), unique(varargin{1}(:, 4))) > 50))
elseif (any(hist(varargin{1}(:, 4), double(unique(varargin{1}(:, 4)))) > 50))
face = varargin{1};
elem = [];
else
Expand Down

0 comments on commit 7d7079b

Please sign in to comment.