当前位置:网站首页>MATLAB 画五星红旗
MATLAB 画五星红旗
2022-04-23 08:15:00 【jeff one】
MATLAB 画五星红旗
源代码如下:
clc;clear;close all
x=[1 4 5 6 9 7 8 5 2 3];
y=[6 6 9 6 6 4 0 2 0 4];
a=.5;
b=[12 15 12 5];
c=[7 0 -7 -10];
hold on
axis equal
fill([0 0 50 50],[12 -25 -25 12],'r')
fill(x,y,'y')
for i=1:4
fill(a*x+b(i),a*y+c(i),'y')
end
axis off
f=getframe(gcf);
figure
f=f.cdata;
[x,y]=meshgrid(1:size(f,2),1:size(f,1));
surf(x,y,25*sin((x*2+y)*.015),f,'edgec','n');
% camlight headlight;
axis equal off;
set(gcf,'color','w');
view([20 40]);


版权声明
本文为[jeff one]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_57038822/article/details/124358146
边栏推荐
- Redis Desktop Manager for Mac(Redis可视化工具)
- DOM 学习之—添加+-按钮
- 关于cin,scanf和getline,getchar,cin.getline的混合使用
- DOM learning notes - traverse all element nodes of the page
- SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
- 洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解
- ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
- 00后最关注的职业:公务员排第二,第一是?
- HAL库的RCC简介
- flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
猜你喜欢

RPC procedure

Community group purchase applet source code + interface DIY + nearby leader + supplier + group collage + recipe + second kill + pre-sale + distribution + live broadcast

IDEA导入commons-logging-1.2.jar包

Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction

'恶霸' Oracle 又放大招,各大企业连夜删除 JDK。。。

Harbor企业级镜像管理系统实战

396. Rotate Function

HAL库的RCC简介

idea配置连接远程数据库MySQL,或者是Navicat连接远程数据库失败问题(已解决)

Let the earth have less "carbon" and rest on the road
随机推荐
idea配置连接远程数据库MySQL,或者是Navicat连接远程数据库失败问题(已解决)
Detailed explanation of ansible automatic operation and maintenance (I) installation and deployment, parameter use, list management, configuration file parameters and user level ansible operating envi
ELK生产实践
通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解
Add random attributes to the Li class array objects and sort them
colorui 解决底部导航遮挡内容问题
信息收集相关知识点及题解
K210学习笔记(二) K210与STM32进行串口通信
Asan minimalism
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
四张图弄懂matplotlib的一些基本用法
Generate and parse tokens using JWT
Input / output system
Shell script advanced
DOM learning notes - traverse all element nodes of the page
ESP32程序下载失败,提示超时
rembg 分割mask
什么是RPC
Stm32f103zet6 [development of standard library functions] - Introduction to library functions
A simple theme of Typecho with beautiful appearance_ Scarfskin source code download