第1 章 初识MATLAB ····································································································.1
1.1 MATLAB 的工作环境 ······························································································.2
1.1.1 操作界面 ·····································································································.2
1.1.2 当前文件夹窗口 ····························································································.2
1.1.3 命令行窗口 ··································································································.3
1.1.4 工作区窗口 ··································································································.5
1.2 通用命令 ··············································································································.6
1.2.1 常用命令 ·····································································································.6
1.2.2 快捷键 ········································································································.6
1.2.3 标点符号的含义 ····························································································.7
1.3 搜索路径设置 ········································································································.7
1.4 MATLAB 的帮助系统 ······························································································.9
1.4.1 使用帮助命令 ·······························································································.9
1.4.2 帮助导航系统 ·····························································································.10
1.4.3 示例程序的帮助系统 ····················································································.11
1.5 MATLAB 示例 ·····································································································.11
1.6 本章小结 ············································································································.12
第2 章 基础知识 ···········································································································.13
2.1 基本概念 ············································································································.14
2.1.1 常量和变量 ································································································.15
2.1.2 数组、矩阵、标量与向量 ··············································································.15
2.1.3 命令与函数 ································································································.16
2.1.4 表达式与语句 ·····························································································.17
2.2 数据类型 ············································································································.17
2.2.1 数值类型 ···································································································.18
2.2.2 逻辑类型 ···································································································.20
2.2.3 字符和字符串 ·····························································································.20
2.2.4 结构体类型 ································································································.20
2.2.5 单元数组类型 ·····························································································.23
MATLAB R2020a 入门、精通与实战
VI
2.2.6 函数句柄 ···································································································.24
2.3 运算符 ···············································································································.25
2.3.1 算术运算符 ································································································.25
2.3.2 关系运算符 ································································································.26
2.3.3 逻辑运算符 ································································································.27
2.3.4 运算优先级 ································································································.28
2.4 字符串 ············································································································