Question: This is the function definition for getpoints. Match each statement with its corresponding role. function [X,Y] = getpoints() ____ X = [];Y = []; _____

 This is the function definition for getpoints. Match each statement with

This is the function definition for getpoints. Match each statement with its corresponding role. function [X,Y] = getpoints() ____ X = [];Y = []; _____ [x, y] = ginput(l); while ~ isempty(x) ____ X(end+1) = x; Y(end+1) = y; _____ plot (x, y, ' ko') [x,y] = ginput(1); ___ end A. Plot user's most recent point B. Append latest x-coordinate to current vector of x values C. Always use this with IF, FOR, and WHILE D. Append latest y-coordinate to current vector of y values E. Initialize empty vectors F. Function header G. Collect first point from user H. Continue until user hits ENTER I. Collect next point from user

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 Databases Questions!