求助matlab画法国国旗 怎么样用matlab 画德国国旗
\u6c42Matlab\u753b\u6cd5\u56fd\u56fd\u65d7\u7684\u4ee3\u7801\u2026\u2026\u2026\u2026\u8c22\u8c22\uff5e\uff01im=zeros(200,300,'uint8');
im(:,1:90,3)=255;
im(:,91:190,:)=255;
im(:,190:300,1)=255;
imshow(im);
\u6216\u8005
Color = [0,85,164; 255,255,255; 239,69,49] / 255;
ZData = zeros(2,4);
figure('toolbar', 'none', 'menubar', 'none', 'Name', 'Peace', ...
'NumberTitle', 'off');
axes('visible', 'off')
surface(ZData, reshape(Color, [1,3,3]), 'Edgecolor', 'none');
im=zeros(300,500,3,'uint8');
im(100:300,:,1)=255;
im(200:300,:,2)=204;
imshow(im);
h=4;%国旗高为4,
figure
rectangle('Position',[0,0,2,h],'facecolor','b');%用画矩形函数rectangle实现。蓝色部分
rectangle('Position',[2,0,4,h],'facecolor','w');%rectangle用法help rectangle。白色部分
rectangle('Position',[4,0,6,h],'facecolor','r');%红色部分
xlim([0,6]);%X显示范围0-6
ylim([0,4]);%Y显示范围0-4
绛旓細娉曞浗鍥芥棗鏄竴闈粠宸﹁嚦鍙宠摑銆佺櫧銆佺孩鑹插瀭鐩存帓鍒楃殑涓夎壊鏃.闀垮涔嬫瘮涓3锛2銆俬=4;%鍥芥棗楂樹负4锛宖igure rectangle('Position',[0,0,2,h],'facecolor','b');%鐢ㄧ敾鐭╁舰鍑芥暟rectangle瀹炵幇銆傝摑鑹查儴鍒 rectangle('Position',[2,0,4,h],'facecolor','w');%rectangle鐢ㄦ硶help rectangle銆傜櫧鑹查儴鍒 rectan...
绛旓細im=zeros(300,500,3,'uint8');im(100:300,:,1)=255;im(200:300,:,2)=204;imshow(im);