We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bbf48b commit 08bd643Copy full SHA for 08bd643
Path2D.m
@@ -71,7 +71,12 @@
71
end%Constructor
72
73
function obj = set.ArcLengths(obj, val)
74
- assert(numel(val) == obj.numel())
+ if coder.target('matlab')
75
+ % Without the if-statement, this breaks Simulink code-gen
76
+ % in some cases (tested with R2014b)
77
+ assert(numel(val) == obj.numel(), ...
78
+ 'Incorrect length of ArcLengths property!')
79
+ end
80
obj.ArcLengths = val(:);
81
end%fcn
82
0 commit comments