MATLAB教程——Lecture 1 Fundamentals of MATLAB Application.ppt


文档分类:IT计算机 | 页数:约44页 举报非法文档有奖
1/44
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/44
文档列表 文档介绍
Introduction to MATLAB
教材第1章 MATLAB环境
(P1-P26)
学习方式:自学
Introduction to MATLAB
Open Matlab ,you see something like this
Introduction to MATLAB
help 和 demo
是最全面和最权威的matlab学习资料
Introduction to MATLAB
Matlab Operations
Getting started : 演算纸
在command window直接输入
Matlab Operations
Getting started : 演算纸
>> 3+2
ans =
5
>> 3-2^4
ans =
-13
>> sin(90)
ans =

>> sin(pi/2)
ans =
1
2^4: 2的4次方
sin(x): x的单位是弧度
pi: 1800
Matlab Operations
Getting started : 演算纸
>> (1+2j)*3j
ans =
- +
>> abs(3+4j)
ans =
5
>> angle(3+4j)/pi*180
ans =

i j 都可以表示复数,j常用于工程
abs() 求复数的模,或实数的绝对值
angle() 求复数的幅角
Matlab Operations
基本数学函数(教材附录G:P417-418)
自学
Matlab Operations
变量 variable 无需定义类型
Variable : 用来存储值(value)的命名单元
赋值(assignment): 将值(value)放进variable单元里.
赋值操作符: =
Variable=expression
Example:
x=2;
x=+y
??? Undefined function or variable 'y'.
表达式里的变量必须先赋值

MATLAB教程——Lecture 1 Fundamentals of MATLAB Application 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数44
  • 收藏数0 收藏
  • 顶次数0
  • 上传人endfrs
  • 文件大小0 KB
  • 时间2015-06-14