Unformatted text preview: plot([x(i,1),x(i,2)],[y(i,1),y(i,2)],’g:’) plot([x(i,3),x(i,4)],[y(i,3),y(i,4)],’g:’) plot(x(i,2),y(i,2),’gs’,x(i,3),y(i,3),’gs’) % some code needed here xp=x(i,1)+bx * t+cx * t. * t+dx * t.ˆ3; yp=y(i,1)+by * t+cy * t. * t+dy * t.ˆ3; plot(xp,yp,’k’) end axis square hold off Plot two versions, one with all endpoints and control points plotted as above, and another with just the curves. Include all Matlab code used in the plots. Extra Credit: Up to 2 extra points may be awarded for each additional letter. Do not attempt extra credit until your ﬁrst letter is perfect. Due: Tues., Apr. 27...
View
Full Document
 Spring '08
 Staff
 Math, b´ zier curves, Times Font

Click to edit the document details