当前位置:网站首页>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
边栏推荐
- ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建
- Transformer XL: attention language modelsbbeyond a fixed length context paper summary
- MySQL数据库中delete、truncate、drop原理详解
- vmware 搭建ES8的常见错误
- Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
- 根据字节码获取类的绝对路径
- rembg 分割mask
- freertos学习02-队列 stream buffer message buffer
- What is RPC
- JVM工具之Arthas使用
猜你喜欢
AQS & ReentrantLock 实现原理
正点原子携手OneOS直播 OneOS系统教程全面上线
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
四张图弄懂matplotlib的一些基本用法
flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
一个必看的微信小程序开发指南1-基础知识了解
There are some problems when using numeric type to query string type fields in MySQL
程序,进程,线程;内存结构图;线程的创建和启动;Thread的常用方法
'恶霸' Oracle 又放大招,各大企业连夜删除 JDK。。。
Knowledge points and problem solutions related to information collection
随机推荐
作文以记之 ~ 二叉树的后序遍历
监控智能回放是什么,如何使用智能回放查询录像
Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
How to generate assembly file
5.6 综合案例-RTU-
PgSQL wants to implement all kinds of column sub query operations of MySQL
DOM learning - add + - button
00后最关注的职业:公务员排第二,第一是?
How to encrypt devices under the interconnection of all things
对OutputStream类的flush()方法的误解
MySQL数据库中delete、truncate、drop原理详解
队列(c语言/链表)
Talk about the basic but not simple stock data
An example of network communication based on TCP / IP protocol -- file transmission
PDF with watermark
flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
Ear acupoint diagnosis and treatment essay 0421
Search the complete navigation program source code
swagger文档导出自定义v2/api-docs拦截