Question: Modify The Matlab Code GetClick4.M To Display On Screen The First 3 Letters Of Your First Name (In Font Savoye LET And In Small Letters).

Modify The Matlab Code GetClick4.M To Display On Screen The First 3 Letters Of Your First Name (In Font Savoye LET And In Small Letters). Following The Position And Direction Of The Drawing Of Each Letter, Use Mouse Click To Select Several Groups Of Points So That Each Group Is Composed Of 4 Points P1, P2, P3, P4 That Would Define A Bezier Curve For The

Modify the matlab code GetClick4.m to display on screen the first 3 letters of your first name (in font Savoye LET and in small letters). Following the position and direction of the drawing of each letter, use mouse click to select several groups of points so that each group is composed of 4 points P1, P2, P3, P4 that would define a Bezier curve for the section of the drawing. The coordinates [x1, y1, x2, y2, x3, y3, x4, y4] of each group of points will be displayed on matlab command window. Highlight the displayed coordinates and copy paste them to a file to save them.

function GetClick4

clf; plot([0 1],[0,0],'k',[0 0],[0 1],'k');grid on; hold on;

hh=text(.0,.50,'ABCDEF'); set(hh,'FontSize',200, 'Color', [0.9 0.8 0.6], 'FontName', 'Savoye LET'); hh=text(.0,.10,'abcdef12345'); set(hh,'FontSize',180, 'Color', [0.6 0.7 0.8], 'FontName', 'Savoye LET');

while(0 == 0)

[xx,yy] = ginput(4); % get 4 mouse clicks hh=plot(xx,yy,'o'); if length(xx) break % if return pressed, terminate end fprintf('%12.5e %12.5e %12.5e %12.5e ', xx(1), yy(1), xx(2), yy(2)); fprintf('%12.5e %12.5e %12.5e %12.5e ', xx(3), yy(3), xx(4), yy(4));

end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!