没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
48页
MATLAB与统计分析课程 MATLAB教案及实用程序 本章为课程其中章节,完整课程下载请访问:https://download.csdn.net/download/qq_27595745/87743583 【课程大纲】 第02章_MATLAB程序设计 共42页.pptx 第03章_图形处理功能 共58页.pptx 第04章_文件操作 共48页.pptx 第05章_数值计算功能 共45页.pptx 第06章_数据处理方法 共46页.pptx 第07章_MATLAB的符号计算 共42页.pptx 第08章_Matlab在信号处理中的应用 共33页.pptx 第09章_MATLAB图形用户界面设计 共18页.pptx 第10章-MATLAB微分方程的数值解 共31页.pptx
资源推荐
资源详情
资源评论
1
MATLAB 语 言 山东农业大学信息学院 SDAU
1
MATLAB 语 言 山东农业大学信息学院 SDAU
1
2023/4/30
第
第
四
四
章
章
文
文
件
件
操
操
作
作
Chapter Four: File Operations
Chapter Four: File Operations
MATLAB
MATLAB
语
语
言
言
MATLAB Language
MATLAB Language
2
MATLAB 语 言 山东农业大学信息学院 SDAU
2
MATLAB 语 言 山东农业大学信息学院 SDAU
2
2023/4/30
In Matlab environment, There are two type files as
following:
1. Program file or M-file
General program and function program.
2. Data file
The system not only provide general function of file
management, but also gives a lot of special function for
file operation.
MATLAB 环境下的文件与其它系统一样,也有两类
文件组成,一类是程序文件,又称M文件,另一类是
数据文件。系统除提供了文件的一般管理功能外,还
提供了对数据文件进行操作的特殊功能函数。
3
MATLAB 语 言 山东农业大学信息学院 SDAU
3
MATLAB 语 言 山东农业大学信息学院 SDAU
3
2023/4/30
4.1 基本命令 (Basic command)
1. Help command
HELP Display help text in Command Window.
Form: help <command name>
Example: help plot
help matlab\general
2. What command
WHAT List Matlab-specific files in directory.
Form: what <directory name>
Example: what matlab
List all the M-files of matlab directory.
4
MATLAB 语 言 山东农业大学信息学院 SDAU
4
MATLAB 语 言 山东农业大学信息学院 SDAU
4
2023/4/30
3. Type commamd
TYPE List M-file.
type foo.bar %lists the ascii file called 'foo.bar'.
type foo %lists the ascii file called 'foo.m'.
Form: type <file name>
4. Lookfor command
Form: lookfor <command or string>
寻找命令或字符串是否存在。
Example:
lookfor cos
4.1 基本命令 (Basic command)
5
MATLAB 语 言 山东农业大学信息学院 SDAU
5
MATLAB 语 言 山东农业大学信息学院 SDAU
5
2023/4/30
5.which command of function search
which item displays the full path for item. 显示item所在的
全路径。
str = which(item) returns the full path for item in the string,
str. 将item的全路径返回到变量str。
Example: which pinv, str = which('pinv');
6 .path command of control path
PATH view or change search path. 查看或改变搜索路径。
path displays the Matlab search path, which is stored in
pathdef.m. 显示Matlab搜索路径,储存在pathdef.m中。
path('newpath') changes the search path to newpath, where
newpath is a string array of folders. 将当前搜索路径设置为
newpath。
4.1 基本命令 (Basic command)
剩余47页未读,继续阅读
资源评论
passionSnail
- 粉丝: 408
- 资源: 5624
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功