matlab课程设计
- 格式:doc
- 大小:51.50 KB
- 文档页数:27
matlab课程设计
计
Matlab应用课程设计任务书
学生姓名: 专业班级:
指导教师: 工作单位:
题 目: Matlab矩阵操作设计
课程设计目的:
《Matlab应用》课程设计的目的是为了让学生熟悉matlab语言,并且利用matlab语言或者函数族进行专业课程理论知识的再现,让学生体会matlab的强大功能,为今后使用matlab语言奠定基础。
课程设计内容和要求
利用MATLAB,mathematics对矩阵操作进行设计,具体包括创建(普通、单位、零)矩阵、矩阵加减、矩阵相乘、矩阵的乘方、矩阵除法、矩阵转置、矩阵点乘、求矩阵的特征值和特征向量、矩阵的变形(reshape)、验证如下函数的功能:all、any、find、isempty、isequal、xor。
要求每个学生单独完成课程设计内容,并写出课程设计说明书、说明书应该包括所涉及到的理论部分和充足的实验结果,给出程序清单,最后通过课程设计答辩。
时间安排:
所需时
序号 阶段内容
间
1 方案设计 1天 2 软件设计 2天
3 系统调试 1天
4 答辩 1天
合 计 5天
指导教师签名: 年 月 日
系主任(或责任教师)签名: 年 月 日
I
目 录
摘
要 ................................................................................................................ 1
Abstract ............................................................................................................. 2 1 要求与基础 ................................................................................................... 3
1.1矩阵操作要求 ..................................................................................... 3
1.2 MATLAB基础 .................................................................................... 3
2 矩阵操作 ....................................................................................................... 5 2.1矩阵创建 ............................................................................................. 5
2.2矩阵加减 ............................................................................................. 7
2.3 矩阵相乘 ............................................................................................ 8
2.4矩阵乘方 ............................................................................................. 9
2.5矩阵除法 ............................................................................................ 11
2.6矩阵转置 ........................................................................................... 12
2.7矩阵点乘 ........................................................................................... 12
2.8求矩阵特征值和特征向量 ................................................................ 13 2.9矩阵变形 ........................................................................................... 14 3 函数功能验证 ............................................................................................. 15
3.1Any函数 ............................................................................................ 15
3.2All函数 .............................................................................................. 16
3.3Find函数 ............................................................................................ 17
3.4Isequal函数 ........................................................................................ 19
3.5Isempty函数 ...................................................................................... 20
3.6Any函数 ............................................................................................ 20 4总结和心得 .................................................................................................. 22 5参考文献 ...................................................................................................... 23
II
摘 要
Matlab集数值计算、符号运算及图形处理等强大功能于一体,是当今国际上公认的最优秀的科技应用软件之一。Matlab将高性能的数值计算和可视化集成在一块,并提供了大量的内置函数,从而使其广泛应用于数学计算和分析、自动控制、系统仿真、数字信号处理、图形图像分析、数理统计、人工智能、虚拟现实技术、通讯工程、金融系统等领域。
本次应用设计就是Matlab环境下的一些基本的矩阵操作和函数功能练习,利用MATLAB,mathematics对矩阵操作进行设计,为将来迅速进入Matlab工程应用领域打下基础。
关键词:Matlab,矩阵操作
1
Abstract
Matlab set of numerical computation, symbolic computation and
graphics processing power in one, is today internationally recognized as
the best application of science and technology. Matlab high-performance
numerical computation and visualization integrated in one, and offers a
number of built-in function, making it widely used in mathematical
calculations and analysis, automatic control, system simulation, digital
signal processing, graphics, image analysis, mathematical Statistics, artificial intelligence, virtual reality technology, communications
engineering, finance systems.
The application design is the Matlab environment, some of the basic
functions of matrix operations and functions practice, the use of
MATLAB-mathematics of matrix operations for design, quick access to
Matlab for the future lay the foundation for engineering applications.
Key words:Matlab, Matrix operations
2
1 要求与基础
1.1矩阵操作要求
利用MATLAB,mathematics对矩阵操作进行设计,具体包括创建(普通、单位、零)矩阵、矩阵加减、矩阵相乘、矩阵的乘方、矩阵除法、矩阵转置、矩阵点乘、求矩阵的特征值和特征向量、矩阵的变形(reshape)、验证如下函数的功能:all、any、find、isempty、isequal、xor。
说明:用具体的实例说明matlab的各种矩阵操作
1.2 MATLAB基础
启动Matlab后,进入Matlab的默认桌面(如图1)。第一行为菜单栏,第二行为工具栏,下面是三个最常用的窗口。右边最大的是命令窗口(Command Window),左上方前台为工作空间窗口(workspace),后台为当前目录窗口(Current