www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateRedOctagonExample.m
%% Create Red Octagon % Copyright 2015 The MathWorks, Inc. %% % Define the data. t = (1/16:1/8:1)'*2*pi; x = cos(t); y = sin(t); %% % Create a red octagon using the |fill| function. fill(x,y,'r') axis square