Write A Script That Modifies The Polygons That You Plotted In 3 Display A Numbered List Of All Names Of The Polygons An 1 (35.74 KiB) Viewed 16 times
Write A Script That Modifies The Polygons That You Plotted In 3 Display A Numbered List Of All Names Of The Polygons An 2 (26.65 KiB) Viewed 16 times
Write A Script That Modifies The Polygons That You Plotted In 3 Display A Numbered List Of All Names Of The Polygons An 3 (26.65 KiB) Viewed 16 times
Write a script that modifies the polygons that you plotted in 3. Display a numbered list of all names of the polygons and ask the user which polygon should be highlighted. Add 'a' for 'all polygons' and 'c' for all convex polygons Check the answer of the user. If he enters a number, the line for this polygon in the plot should be modified: Change the color to red [1 0 0 ] and the line width to 3. • enters a, nothing changes enter c, all convex polygons should be highlighted: Change their colors to red [100] and the line width to 3. For all other polygon lines change the color to light gray [0.9 0.9 0.9), the line width to 0.5 and the line type dotted.
3. 3 Write a function that plots the data stored in the created structure array. Ask the user whether all polygon or only convex polygon should be plotted. Do not forget to display proper axis numbers and a title for you plot. Check the range properties of the struct and scale the axes in a way, that all polygons are displayed without being truncated. Store the line properties for each polygon in you plot in a cell array and return this array to the default workspace. Add additional information to the line properties. Add the named you created in the field "DisplayName' and the information is_convex in the field 'UserData'.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!