- 25
- 0
- 约4.34千字
- 约 14页
- 2017-11-13 发布于浙江
- 举报
§2.1 Operators
Expressions use familiar arithmetic operators
and precedence rules
+ - * .* ^ .^ \ .\ / ./
+ Addition + Addition
- Subtraction - Subtraction
* Multiplication .* Element-by-element
/ Division multiplication
\ Left division (described ./ Element-by-element division
in “Linear Algebra” in the .\ Element-by-element left
MATLAB documentation) division
^ Power .^ Element-by-element power
§2.1 Operators
• Relational operators
== ~= = =
• Logical operators | ~
§2.2 Numbers computation
Ⅰ、Variables:
Variable names consist of a letter, followed by
any number of letters, digits, or underscores.
MATLAB distinguishes between uppercase
and lowercase letters. A and a are not the same variable.
§2.2 Numbers computation
Several special functions provide values of useful constants:
ans:absent variable name
i、j :Imaginary unit
pi:ratio of the circumference of a circle to its diameter
inf:Infinity
NaN:Not-a-Number
§2.3 Generating Vectors
Ⅰ. Enter an explicit list of elements
[ ]
using space、comma or semicolon to separate
space、comma for row
semicolon for coloum
Ⅱ. The Colon Operator :
x=x0 : step : xn
t = 12: -2 :3
t =
12 10 8 6 4
Ⅲ. Generate equally spaced points
• Linearly equally spaced points
y=linspace(x1,x2,n)
row vector,y(1)=x1, y(n)=x2
• Logarithmically equally spaced points
y=logspace(x1,x2,n)
y(1)=10^x1, y(n)=10^x2
您可能关注的文档
- 《电力电子技术(第5版)》王兆安-第10章 电力电子技术的应用.ppt
- 《房屋建筑学》建筑设计说明参考.doc
- 《工程估价》第一、二章.ppt
- 《工程估价》下载的工程估价课件.ppt
- 《工程估价》工程造价工作诀窍.docx
- 《工程监理》8建设工程监理规划性文件.ppt
- 《工程监理》3.3建设工程投资控制.ppt
- 《工程监理》工程监理-3.1~3.2.ppt
- 《工程结构》课件-工程结构思考题与习题.doc
- 《工程结构》课件-第四章受弯构件斜截面计算.ppt
- 2025-2026学年天津市和平区高三(上)期末数学试卷(含解析).pdf
- 2025-2026学年云南省楚雄州高三(上)期末数学试卷(含答案).pdf
- 2025-2026学年甘肃省天水市张家川实验中学高三(上)期末数学试卷(含答案).docx
- 2025-2026学年福建省厦门市松柏中学高二(上)期末数学试卷(含答案).docx
- 2025-2026学年广西钦州市高一(上)期末物理试卷(含答案).docx
- 2025-2026学年河北省邯郸市临漳县九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省石家庄二十三中七年级(上)期末历史试卷(含答案).docx
- 2025-2026学年海南省五指山市九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省唐山市玉田县九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省邢台市市区九年级(上)期末化学试卷(含答案).docx
原创力文档

文档评论(0)