I need to write a function that will plot a series of points that are input as 1x2 arrays separated by commas. I understand that one could simply input all of the x values into one array and all of the y values in to an array (ie. x = [1 4 3 7 2] y = [2 5 1 2 8] plot(x,y,'*'),) however for this problem i am required to input the points as 1x2 arrays separated by collumns like so:
%insert code here;
then in a new script:
plotPoints([1,2] , [2,6] , [8,3] , [6,9])
I have no idea how to go about doing this.