正在加载图片...
x=response(1);y response(2);r=response(3); %call plotStar (to Plot a star using the algorithm specified before %the data for the five lines is returned as a [6,2]arrays.Each row %contains x and y coordinates of one end point of the star. star plotStar(x,y,r); Sample Run >plotusflag Specify parameter for a star [x,y,size]-[10,10,3] What to turn in: function flag=createFlagStrips (as sYourID hwk2 4 1.m .function star=plotStar(x,y,r)as s YourID_hwk2 4_2.m Notes for submission: You should save your homework in an m file and submit your homework to the Sakai using attachment.You should name you file in the following matter.The format is important,if you did not follow this rule,your homework may not be able to be grated correctly or on time. sYourlD_hwk2_x.m Example s5073709022hwk2X.mx = response(1); y = response(2); r = response(3); %call plotStar () to Plot a star using the algorithm specified before %the data for the five lines is returned as a [6, 2] arrays. Each row %contains x and y coordinates of one end point of the star. star = plotStar(x,y,r); Sample Run What to turn in: • function flag = createFlagStrips () as sYourID_hwk2_4_1.m • function star = plotStar (x, y, r) as sYourID_hwk2_4_2.m Notes for submission: You should save your homework in an m file and submit your homework to the Sakai using attachment. You should name you file in the following matter. The format is important, if you did not follow this rule, your homework may not be able to be grated correctly or on time. sYourID_hwk2_x.m Example : s5073709022_ hwk2_x.m
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有