Graphical User Interface Bezier Curve – GUI cla (handles.axes1 ); xlabel (handles.axes1, 'X' ); ylabel (handles.axes1, 'y' ); zlabel (handles.axes1, 'z' ) x=get(handles.edit1, 'string' ); x = str2num(x ); x= str2double( strsplit (x{:}, ’,’ )); y=get(handles.edit2, 'string' ); y = str2num(y); z=get(handles.edit3, 'string' ); z = str2num(z); syms u ; P =[ x;y;z ]; B=0 ; n = length(x)-1; for i = 0:n B=B+ factorial(n)/(factorial(i)*factorial(n-i))* ... u^i * (1-u)^(n-i) *P(:,i+1); End i=0; for U=0:0.01:1 i=i+1; C_pnts (:, i)= double(subs( B,u,U )); End plot3(handles.axes1 , C_pnts (1,:), C_pnts (2,:), C_pnts (3 ,:), 'r' ); hold(handles.axes1 , 'on' ) grid(handles.axes1, 'on' ) checked=get(handles.checkbox1, 'value' ); if checked plot3(handles.axes1,x,y,z, 'b' , 'linewidth' ,2); end