当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

恒润科技:《MATLAB 基础与编程入门》第一章 MATLAB 基础

资源类别:文库,文档格式:PPT,文档页数:55,文件大小:3.35MB,团购合买
一、开始使用 MATLAB 二、在命令行进行计算 三、MATLAB的帮助功能 四、MATLAB桌面 五、矩阵计算 六、矩阵索引 七、数据类型的使用 八、建立和使用脚本文件
点击下载完整版文档(PPT)

MATLAB⊙基础与编程入门 恒润科技 HIRAIN TECHNOLOGIES MATLAB基础 HiRain Technologies

MATLAB® 基础与编程入门 MATLAB 基础

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 本章概述 ■开始使用 MATLAB ■在命令行进行计算 MATLAB的帮助功能 MATLAB桌面 矩阵计算 矩阵索引 ■数据类型的使用 ■建立和使用脚本文件 www.hirain.com

2 本章概述 ◼ 开始使用 MATLAB ◼ 在命令行进行计算 ◼ MATLAB 的帮助功能 ◼ MATLAB 桌面 ◼ 矩阵计算 ◼ 矩阵索引 ◼ 数据类型的使用 ◼ 建立和使用脚本文件

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 开始使用 MATLAB 法 MATLAB Fle Edit Debug Desktop window Help 息c|等|?| Curent Directory:|ts Shortcuts How to Add a what's New >> cd d: \class 4 Current directory l works and History 日%-04-11-16下午2:56-% c⊥ass www.hirain.com

3 开始使用MATLAB

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 改变 MATLAB桌面外观 File Edit Debug Desktop Window Help |自c|尊西|?| Currert Directory: clas Shortcuts p How to Add a what's New File Edt Debug Desktop window Help 阵? rectory d: class Shortcuts a How to Add what's New Cammand window Command Window Command History Current Directory Workspace Help Profiler www.hirain.com

4 改变MATLAB桌面外观

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 返回缺省的 MATLAB桌面 Shortcuts a How to Add c) what's Desktop Layout Defaut Workspace Command Window Only anize Layouts History and Command window v Command window AI Tabbed Name∠ v Current Directory v Workspace Fie Edit Debug Desktop Window Hep v Toolbar Shortcuts Toolbar Currert Directory)workspace Command Window Command History Current Directory Workspace务041-16下午2:56% dd: \cl www.hirain.com

5 返回缺省的MATLAB桌面

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 修改 MATLAB桌面外观 wMATLAB File Edit Debug Desktop Window Current Ctrl+o Close Command window mand window pret Al-Files import Data Save Workspace As Ctrl+S -Fonts Set Path Custom Numeric format:long Page Setup -Keyboard Indenting 1 D-Classunsfun m Keyboard& Indenting/Limt matrix display width to eighty columns D. iClasstsfuntmpl m annuae Publishing Number of lines in command window scroll buffer 3 d\.sl01 bungee tmpl.m 4 D\code grt rtw'icodec 56-% blishing Images Exit MATLAB Ctrl+Q Arrow keys navigate instead of recalling history Directory Array Editor -Simulin AStart Fonts 参考: Utility Commands www.hirain.com

6 修改 MATLAB 桌面外观 参考: Utility Commands

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES MATLAB桌面的组成 Command Window File Edit Debug Desktop window Help File Edit Debug Desktop window Help 口哈c阵? J Current Directory=ddas 〉ax=0:0.1:10 Shortcuts 2 How to Add What's New d Command History CurrertDirectory-cidlass 的与已 ile Edit Debug Desktop window Help A‖Fies All Files日-04-11-16下午2:56-5 File Type Last Cod □ code grt rtw Folder cd d: \clas □ML01 Folder □PDFs 口PD A=重agic(3 □ private 口SL01 Folde 200口S Bget(o) x=DD,[135】 x=0:0.1:10: Current Directory Workspace ay-cos(ax) Command History ax=0:0.1:10 日%04-11-16下午2:56—% cd d: clas ax=0:0.1:10 c⊥Lc d Start www.hirain.com

7 MATLAB桌面的组成

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 在命令行进行计算 MATLAB作为计算器 设置变量 >-5/(4.8+532)2 2 分号屏蔽屏幕输出 ans -0.048821 >(3+4)*(34) ans ans 如果未指定返回变量,结 25 32 果存储在“ans中 >> coS(pi/2 5/2*pi ans >>y= sin(x) 6.1232e-017 > exp(acos(0.3)) ans 3.547 asin(y) 函数输入使用括弧() 1.5708 > cmd line 数值以双精度浮点格式存储 www.hirain.com 8

8 在命令行进行计算 >> -5/(4.8+5.32)^2 ans = -0.048821 >> (3+4i)*(3-4i) ans = 25 >> cos(pi/2) ans = 6.1232e-017 >> exp(acos(0.3)) ans = 3.547 >> a = 2; >> b = 5; >> a^b ans = 32 >> x = 5/2*pi; >> y = sin(x) y = 1 >> z = asin(y) z = 1.5708 如果未指定返回变量,结 果存储在‘ans’中 函数输入使用括弧 ( ) 分号屏蔽屏幕输出 MATLAB 作为计算器 设置变量 >> cmd_line 数值以双精度浮点格式存储

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 文件和变量的使用 MATLAB函数用途 CD/PWD,LSDR目录浏览 WHAT 显示目录中的文件(按类型分组) (bang) 激活操作系统 WHICH 确定所引用的目标 CLEAR 清除内存中的函数或变量 WHO WHOS 显示工作区的变量 SIZE 返回矩阵的大小(行数和列数) 参考: Utility Commands www.hirain.com 9

9 文件和变量的使用 MATLAB 函数 用途 CD/PWD, LS/DIR WHAT 显示目录中的文件 (按类型分组) ! (bang) 激活操作系统 WHICH 确定所引用的目标 CLEAR 清除内存中的函数或变量 WHO, WHOS SIZE 目录浏览 显示工作区的变量 返回矩阵的大小 (行数和列数) 参考: Utility Commands

恒润科技 HiRain Technologies HIRAIN TECHNOLOGIES 工作空间浏览器 File Edit Debug Desktop Window Help 》c海r|?| Current Directoryatclass Shortcuts a How to Add a what's New Workspace ·sk value C Hello 田A 816,357,4…. doubl 1x3 double] double 田ay double >>A 用B 1x1 struct A L Current Directory Workspace Command History 8 6 7 www.hirain.com

10 工作空间浏览器

点击下载完整版文档(PPT)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共55页,可试读19页,点击继续阅读 ↓↓
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有