In bspline_gui.m before the assignment to the variable fig, add the line
hg1 = verLessThan('matlab', '8.4');
Then change the assignment to ax to become
ax = axes('Parent', fig, ...
'Units', 'normalized', ...
'OuterPosition', [0.2 0 0.8 1], ...
'XLimMode', 'manual', ...
'YLimMode', 'manual', ...
'ZLimMode', 'manual');
if hg1
set(ax, 'DrawMode', 'fast');
else
set(ax, 'SortMethod', 'childorder');
end
Then in gui_bind_event.m change
validateattributes(obj, {'numeric'}, {'scalar'});
to
validateattributes(obj, {'numeric', 'matlab.ui.Figure'}, {'scalar'});
You will now be able to run the code.
The GUI should have four text edit boxes at the bottom left, but it probably will not have those until you resize the figure once. The boxes are probably going to show up as unlabeled. One is to edit x, another to edit y, another to edit z, and the last to edit w -- but the order will probably be w z y x from top to bottom. I do not know what these do.
If you resize the GUI too much, the text boxes will probably disappear. I do not know where they go.
If you right-click after placing points, you will not be able to add more points.