1.1Matlab 6.X简介
1.1.121世纪的科学计算语言
1.功能强大
2.语言简单
3.扩充能力强、可开发性强
4.编程易、效率高
1.1.2Matlab的发展历史
1.1.3Matlab的新特点
1.1.4Matlab的应用和网上资源
1.2Matlab 6.X的安装
1.3Matlab的桌面平台
1.4帮助系统
1.4.1联机帮助系统
>>helpwin == helpdesk == doc %Help|Full Product Family Help
1.4.2命令窗口查询帮助系统
>>help %On-line help, display text at command line.
>>lookfor %Search all M-files for keyword.
>>exist %Check if variables or functions are defined.
>>what %List MATLAB-specific files in directory.
>>who %List current variables.
>>whos %List current variables, long form.
>>which %Locate functions and files.
1.4.3联机演示系统
>>demos %Help|Demos
1.4.4常用的命令和操作技巧
1.常用命令
>>cd %Change current working directory.改变工作目录
>>clc %Clear command window.清除命令窗
>>clear %Clear variables and functions from memory.清除内存变量
>>clf %Clear current figure.清除图形窗口
>>diary %Save text of MATLAB session.日志文件命令
>>dir %List directory.显示目录文件
>>disp %Display array.显示变量或文字内容
>>echo %Echo commands in M-files.显示命令窗信息
>>hold on/off %Hold current graph.图形保持开关
>>load %Load workspace variables from disk.加载指定mat文件的变量
>>pack %Consolidate workspace memory.收集内存碎片,扩大内存空间
>>path %Get/set search path.显示或设置搜索目录
>>quit %Quit MATLAB session.退出Matlab
>>save %Save workspace variables to disk.保存内存变量到指定mat文件
>>type %List M-file.显示mat文件内容
>>! %调用DOS命令
2.常用操作技巧
>>up >>down
>>left >>right
>>Ctrl+left >>Ctrl+right
>>home >>end
>>backspace>>del
>>esc
1.5Matlab搜索目录
>>path %path('E:\myfile',path); path(path,'E:\myfile');
>>editpath == pathtool %File|Set Path
>>addpath %Add directory to search path.加载目录