matlab实现三次贝塞尔曲线
更新时间:2023-10-08 11:26:01 阅读量: 综合文库 文档下载
- matlab推荐度:
- 相关推荐
根据bezier定义
% Bezier Square Curve Ploter
% This file will create a Bezier square curve and dispay the plot. % The parameter is the Vertex matrix. function [X] = bezier2(Vertex)
BCon=[1 -2 1;-2 2 0;1 0 0]; % constant Matrix for i = 1:1:50 par = (i - 1)/49;
XY(i,:) = [par^2 par 1]*BCon*Vertex; % create data end
% display the vertices and the curve using Matlabs built-in graphic functions clf % this will clear the figure plot(Vertex(:,1),Vertex(:,2),'ro',XY(:,1),XY(:,2),'b-')
% create a plot of both the Vertices and curve, the vertices will be red “o” % while the curve is blue line
line(Vertex(:,1),Vertex(:,2),'color','g') % add the control polygon. xlabel(' x ') ylabel ('y ')
title('Square Bezier Curve')
legend('控制顶点','Bezier曲线','控制多边形') % you can move the legend on the plot
然后,在命令行定义Bez2Vertex=[ 0 0 ; 0.3 0.7 ; 1.0 0.2],即定义 , , ,再在命令行输入bezier2(Bez2Vertex)
正在阅读:
matlab实现三次贝塞尔曲线10-08
DK71+022.305~DK71+764.38段涵洞施工组织设计封面08-21
物资处理报告08-21
布里斯托尔修道院绿色公寓(Abbey Green Apartment)08-21
自修申请书03-31
续签合同申请书模板05-02
部队入党转正申请书模板09-08
工程竣工监理总结报告月雅苑01-14
高考历史一轮复习自由放任的美国罗斯福新政和当代资本主义的新变06-01
医生入党申请书模板09-08
- 多层物业服务方案
- (审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)
- 人教版新课标六年级下册语文全册教案
- 词语打卡
- photoshop实习报告
- 钢结构设计原理综合测试2
- 2014年期末练习题
- 高中数学中的逆向思维解题方法探讨
- 名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版
- 北航《建筑结构检测鉴定与加固》在线作业三
- XX县卫生监督所工程建设项目可行性研究报告
- 小学四年级观察作文经典评语
- 浅谈110KV变电站电气一次设计-程泉焱(1)
- 安全员考试题库
- 国家电网公司变电运维管理规定(试行)
- 义务教育课程标准稿征求意见提纲
- 教学秘书面试技巧
- 钢结构工程施工组织设计
- 水利工程概论论文
- 09届九年级数学第四次模拟试卷
- 贝塞尔
- 曲线
- 实现
- matlab
- OPC通讯协议简介
- 《铃兰花》教案高品质版
- 侵权责任法思考题集解析
- 淮阴工学院机电传动课程设计工作台往返循环电机拖动系统设计
- 用霍尔元件测量磁场
- 全国各地2016年中考物理试题分类汇编(第二辑)第12章 简单机械(含解析)
- 2017年会计继续教育经济法基础考试试题及答案
- 安全生产一岗双责责任考核实施细则
- 解说词
- 校园安全辩论赛资料2
- γ辐照加工装置放射卫生防护管理规定
- 2016山东省考真题和答案 - 图文
- 西南最新版《儿童哲学》网上作业及课程考试复习资料(有答案)
- C习题指针部分
- TD-LTE载波聚合频率及子帧设置指导建议(征求意见稿)
- 幕墙施工招标文件
- 深圳某酒店可行性研究报告
- 反假资格证书
- 立设的度制限时证举国我析试
- 国民经济和社会发展第十二个五年规划纲要 - 图文