⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.m

📁 使用matlab
💻 M
字号:
clear;
%Show the flag without stars using pcolor
flag=zeros(13,40);
for i=2:2:12
    flag(i-1,:)=0.15;
    flag(i,:)=0;
end
flag(13,:)=0.15;
show = flag;
show(end+1,1) = 0; %Hidden point, fixes the lower bound of the colormap
show(end,end+1) = 1; %Hidden point, fixes the upper bound of the colormap
pcolor(1:41,1:14,show);

hold on%let the picture drew still be on the screen
bluebar=0.4+zeros(8,20);%draw another place in the left above corner
pcolor(1:20,7:14,bluebar);%print it blue 
colormap vga%color mode is vga
shading flat
axis off
for i=1:5
    for j=1:10
        star(1.3+j*1.6,6.7+i*1.3,0.5);
    end
end
hold off;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -