Skip to content

Commit 5a2a381

Browse files
authored
Codegen fixes.
1 parent 6096c49 commit 5a2a381

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PolygonPath.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@
153153
end%fcn
154154

155155
function obj = clear(obj)
156-
obj.x = [];
157-
obj.y = [];
158-
obj.head = [];
159-
obj.curv = [];
160-
obj.ArcLengths = [];
156+
obj.x(:,:) = [];
157+
obj.y(:,:) = [];
158+
obj.head(:,:) = [];
159+
obj.curv(:,:) = [];
160+
obj.ArcLengths(:,:) = [];
161161
end%fcn
162162

163163
function obj = derivative(obj, n)

0 commit comments

Comments
 (0)