From f1510fcc60eabdb0cc1d538d0d823bdcea4b025a Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Wed, 29 Jul 2026 10:24:44 +0200 Subject: [PATCH] Fixing warnings --- src/distmesh2d.m | 4 ++-- src/simpplot.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/distmesh2d.m b/src/distmesh2d.m index c28b9c4..c0e6f0a 100755 --- a/src/distmesh2d.m +++ b/src/distmesh2d.m @@ -87,7 +87,7 @@ bars=[t(:,[1,2]);t(:,[1,3]);t(:,[2,3])]; % Interior bars duplicated bars=unique(sort(bars,2),'rows'); % Bars as node pairs % 5. Graphical output of the current mesh - cla,patch('vertices',p,'faces',t,'edgecol','k','facecol',[.8,.9,1]); + cla,patch('Vertices',p,'Faces',t,'EdgeColor','k','FaceColor',[.8,.9,1]); drawnow end @@ -98,7 +98,7 @@ L0=hbars*Fscale*sqrt(sum(L.^2)/sum(hbars.^2)); % L0 = Desired lengths % Density control - remove points that are too close - if mod(count,densityctrlfreq)==0 & any(L0>2*L) + if mod(count,densityctrlfreq)==0 && any(L0>2*L) p(setdiff(reshape(bars(L0>2*L,:),[],1),1:nfix),:)=[]; N=size(p,1); pold=inf; continue; diff --git a/src/simpplot.m b/src/simpplot.m index 38973e2..01d7f06 100755 --- a/src/simpplot.m +++ b/src/simpplot.m @@ -5,8 +5,8 @@ function simpplot(p,t,expr,bcol,icol,nodes,tris) dim=size(p,2); switch dim case 2 - if nargin<4 | isempty(bcol), bcol=[.8,.9,1]; end - if nargin<5 | isempty(icol), icol=[0,0,0]; end + if nargin<4 || isempty(bcol), bcol=[.8,.9,1]; end + if nargin<5 || isempty(icol), icol=[0,0,0]; end if nargin<6, nodes=0; end if nargin<7, tris=0; end