- 1、本文档共13页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第三章数据和函数的可视化(The third chapter is the visualization of data and functions)
第三章数据和函数的可视化(The third chapter is the visualization of data and functions)
例3 1 plot (x)
t = (0, pi / 50: 2 * pi)
k = 0.4 0.1: 1;
x = cos (t) * k;
plot (x)
例3 2 plot (x, y)
t = (0, pi / 50: 2 * pi)
k = 0.4 0.1: 1;
x = cos (t) * k;
plot (t, x)
plot (x, t)
例3 - 3 用图形表示连续调制波形y = sintsin9t及其包络线
t = (0, pi / 100: pi);
y1 = sin (t) * [1, 1].
y2 = sin (t) sin (9 * t);
plot (t, 1, r, t, y2, b)
axis ([0, pi, - 1,1])
例 3-4 数据点型演示
t = (0, pi / 100: pi);
y2 = sin (t) sin (9 * t);
t1 = pi * (0 9) / 9;
y3 = sin (t1) * sin (9 ).
plot (t, y2, y3 , b , bp )
axis ([0, pi, - 1,1])
例3 - 5 图形标识演示
t = 0: 0.01: pi;
b = [1,3] ; w = [2.5].
y = sin (w * t) exp (- b * t);% sin2te - t, sin5te - 3t
plot (t, y (1), ., t, y (2))
legend (w = 2, b = 1, s = 5, b = 3)
xlabel (t ), ylabel ( y )
title (y = sin (wt) * exp (- bt))
例3 - 6 精细指令演示
t = 0: 0.01: pi;
b = [1,3] ; w = [2.5].
y = sin (w * t) exp (- b * t);% sin2te - t, sin5te - 3t
plot (t, y (1), ., t, y (2))
legend (\ r \ omega = 2 \ bf \ alpha = 1, \ r \ omega = 5 \ bf \ alpha = 3)
xlabel (\ fontsize {14} \ bft)% 建立x轴名 (14号黑体)
ylabel (\ fontsize {14} y)
title (\ rm y = 1 - e ^ {- j} sin (omegat alphat)% 建立图名 (上标和希腊字母)
例3 - 7
t = 0: 0.02: 3;
xi = 0.5; dk = 5;
sxi = sqrt (1 - xi ^ 2);
sita = atan (sxi / xi);
wd = tn * sxi;
y1 = 1 - exp (- xi * dk * t) sin (wd * t + sita) / sxi;
y2 = - tn * exp (- xi * dk * t) sin (wd * t) / sxi;
plotyy (t 1, t, y2)
text (2,0.3, \ fontsize {14} \ {} 单位脉冲响应 font name 楷体)
text (2,1.1, \ fontsize {14} \ {} 单位阶跃响应 font name 黑体)
xlabel (\ fontsize {14} \ bft)
例 3-8 多子图演示
t = (pi * (0, 1000 / 1000).
y1 = sin (t); y2 = sin (10 *); y12 = sin (t) sin (10 *);
subplot (2,2,1), plot (t, 1) axis ([0, pi, - 1,1])
subplot (2,2,2), plot (t, y2); axis ([0, pi, - 1,1])
subplot (location, [0.2,0.05,0.6, 0.45])
plot (t, y12, b, t [1, 1], r) axis ([0, pi, - 1,1])
例3 - 9多次叠绘演示 (hold on, hold off)
clf; t = 2 * pi * (0: 20 / 20;
y = cos (t) exp (- 0.4 * t);
stem (t, y, g);
stairs (t, y, r);
hold off
例3 - 10
t = 0: 0.3: 2 * pi; y = exp (-
您可能关注的文档
- 服务转型见成管理效,金蝶国际高增长(Service transformation see management effectiveness, Kingdee International High Growth).doc
- 服装企业谈e管理rp项目开发流程(Apparel enterprises talk about e management, RP project development process).doc
- 服装企业(Clothing enterprise).doc
- 服装分类及品牌略记(A brief account of clothing classification and brand).doc
- 服装的搭配(Clothing collocation).doc
- 本周强势股点评(Strong stocks comment this week).doc
- 本土快速消费管理品业发力挖角 hr紧张(Local management of fast moving consumer products industry poaching HR tension force).doc
- 本土润滑油高端突破的6大策略(6 strategies for high-end breakthrough of local lubricating oil).doc
- 本科珠宝鉴赏考试(Undergraduate jewelry appreciation examination).doc
- 本田公司(honda).doc
最近下载
- 生物专业英语中英文对照(蒋悟生版)(Bioengineering English).pdf VIP
- 中高职衔接“3+2”人才培养方案模板(机电一体化技术)(高职).docx
- 基于微信小程序的校园导航系统设计与实现 毕业论文.docx
- 2025年陕西机电职业技术学院单招职业适应性测试题库word.docx VIP
- 团体标准住院患者身体约束护理PPT.pptx
- 20230313-平安证券-芯原股份-688521-国内半导体IP龙头,助力Chiplet技术发展.pdf VIP
- 小学残疾儿童送教上门教案(40篇).pdf
- 新人教版2024高三一轮总复习Unit2HealthyLifestyle课件选择性必修第三册(英语).pptx VIP
- 中高职衔接“3+2”人才培养方案模板(机电一体化技术 )(高职).pdf
- 北师大版小学数学三年级下册第二单元复习课.pptx
文档评论(0)