matlab getstart,matlab帮助文件(matlab get start.pdf)

news/2024/12/2 17:57:10/

【实例简介】Matlab Primer

【实例截图】

6a5bd1c28440f11901fee6a8a579695e.png

【核心代码】

Quick Start

1

MATLAB Product Description ........................... 1-2

Key Features ..................................... 1-2

Desktop Basics ....................................... 1-3

Matrices and Arrays .................................. 1-5

Array Indexing ...................................... 1-10

Workspace Variables ................................. 1-12

Text and Characters .................................. 1-13

Text in String Arrays ............................... 1-13

Data in Character Arrays ........................... 1-14

Calling Functions .................................... 1-15

2-D and 3-D Plots .................................... 1-17

Programming and Scripts ............................. 1-24

Scripts ......................................... 1-24

Live Scripts ..................................... 1-25

Loops and Conditional Statements .................... 1-26

Script Locations .................................. 1-27

Help and Documentation ............................. 1-28

v

Contents

Language Fundamentals

2

Matrices and Magic Squares ........................... 2-2

About Matrices .................................... 2-2

Entering Matrices .................................. 2-4

sum, transpose, and diag ............................ 2-5

The magic Function ................................ 2-7

Generating Matrices ................................ 2-8

Expressions ......................................... 2-9

Variables ........................................ 2-9

Numbers ....................................... 2-10

Matrix Operators ................................. 2-11

Array Operators .................................. 2-11

Functions ....................................... 2-13

Examples of Expressions ........................... 2-14

Entering Commands ................................. 2-16

The format Function ............................... 2-16

Suppressing Output ............................... 2-17

Entering Long Statements .......................... 2-17

Command Line Editing ............................. 2-18

Indexing ........................................... 2-19

Subscripts ...................................... 2-19

The Colon Operator ............................... 2-20

Concatenation ................................... 2-21

Deleting Rows and Columns ......................... 2-22

Scalar Expansion ................................. 2-23

Logical Subscripting ............................... 2-23

The find Function ................................. 2-24

Types of Arrays ...................................... 2-26

Multidimensional Arrays ............................ 2-26

Cell Arrays ...................................... 2-28

Characters and Text ............................... 2-30

Structures ...................................... 2-33

vi Contents

Mathematics

3

Linear Algebra ....................................... 3-2

Matrices in the MATLAB Environment .................. 3-2

Systems of Linear Equations ......................... 3-13

Factorizations .................................... 3-25

Powers and Exponentials ........................... 3-32

Eigenvalues ..................................... 3-35

Singular Values .................................. 3-39

Operations on Nonlinear Functions ..................... 3-44

Function Handles ................................. 3-44

Function Functions ................................ 3-44

Multivariate Data .................................... 3-48

Data Analysis ....................................... 3-49

Introduction ..................................... 3-49

Preprocessing Data ............................... 3-49

Summarizing Data ................................ 3-55

Visualizing Data .................................. 3-59

Modeling Data ................................... 3-70

Graphics

4

Basic Plotting Functions ............................... 4-2

Creating a Plot .................................... 4-2

Plotting Multiple Data Sets in One Graph ................ 4-4

Specifying Line Styles and Colors ...................... 4-6

Plotting Lines and Markers ........................... 4-7

Graphing Imaginary and Complex Data .................. 4-9

Adding Plots to an Existing Graph ..................... 4-10

Figure Windows .................................. 4-12

Displaying Multiple Plots in One Figure ................ 4-12

Controlling the Axes ............................... 4-13

Adding Axis Labels and Titles ........................ 4-15

Saving Figures ................................... 4-16

Saving Workspace Data ............................ 4-17

vii

Creating Mesh and Surface Plots ....................... 4-19

About Mesh and Surface Plots ....................... 4-19

Visualizing Functions of Two Variables ................. 4-19

Display Images ...................................... 4-25

Image Data ...................................... 4-25

Reading and Writing Images ......................... 4-27

Printing Graphics ................................... 4-28

Overview of Printing ............................... 4-28

Printing from the File Menu ......................... 4-28

Exporting the Figure to a Graphics File ................ 4-28

Using the Print Command ........................... 4-29

Working with Graphics Objects ........................ 4-30

Graphics Objects ................................. 4-30

Setting Object Properties ........................... 4-33

Functions for Working with Objects ................... 4-35

Passing Arguments ................................ 4-36

Finding the Handles of Existing Objects ................ 4-37

Programming

5

Control Flow ......................................... 5-2

Conditional Control — if, else, switch ................... 5-2

Loop Control — for, while, continue, break ............... 5-5

Program Termination — return ........................ 5-7

Vectorization ..................................... 5-7

Preallocation ..................................... 5-8

Scripts and Functions ................................. 5-9

Overview ........................................ 5-9

Scripts ......................................... 5-10

Functions ....................................... 5-11

Types of Functions ................................ 5-13

Global Variables .................................. 5-15

Command vs. Function Syntax ....................... 5-15

viii Contents


http://www.ppmy.cn/news/614427.html

相关文章

Js时间格式[转载]

var myDate new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代表1月)myDate.getDate(); //获取当前日(1-31)myDate.getDay(); //获取当…

虚拟纹理与几何图像技术

虚拟纹理与几何图像技术 一. 基本图形学概念 图1. 几何与纹理。 曲面一般表示成三角网格和纹理图像,三角网格表示曲面的几何拓扑信息,纹理图像给出曲面的颜色材质等信息。将三角网格映射到平面区域的过程被称为曲面参数化,将纹理…

mysql 4.0.27 下载,CentOS编译Mysql 4.0.27数据库问题解决

CentOS编译Mysql 4.0.27数据库问题解决以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!现在好多人都用起了centos 但有些特殊要求还必须安装mysql 的数据库 在第一次安装过程中还遇到了不少问…

BZOJ1491: [NOI2007]社交网络(Floyd 最短路计数)

Time Limit: 10 Sec Memory Limit: 64 MBSubmit: 2343 Solved: 1266[Submit][Status][Discuss]Description 在社交网络(socialnetwork)的研究中,我们常常使用图论概念去解释一些社会现象。不妨看这样的一个问题。在一个社交圈子里有n个人&a…

RCNN系列、Fast-RCNN、Faster-RCNN、R-FCN检测模型对比

RCNN系列、Fast-RCNN、Faster-RCNN、R-FCN检测模型对比 一.RCNN 问题一:速度 经典的目标检测算法使用滑动窗法依次判断所有可能的区域。本文则预先提取一系列较可能是物体的候选区域,之后仅在这些候选区域上提取特征,进行判断。…

php限制字符输入,.NET_asp.net(c#)限制用户输入规定的字符和数字的代码,一下是这个代码: 只允许 用 - phpStudy...

asp.net(c#)限制用户输入规定的字符和数字的代码一下是这个代码:只允许 用户名输入:用户名称的开头,必须为0~9、a~z或A~Z !复制代码 代码如下:protected void Button3_Click(object sender, EventArgs e){int error_count 0; //用…

001:声学基础(1):音频概述

在了解音频声学的最开始,首先要知道的最基础的一个问题是: 什么是声音?人为什么可以听到声音? 声音是由于物体的振动通过介质传播并能被人的听觉器官所感知的波动现象。人能够听到声音是因为物体在振动时,周围的空气分…

0x22 迭代加深

poj2248 真是个新套路。还有套路剪枝...大到小和判重 #include<cstdio> #include<iostream> #include<cstring> #include<cstdlib> #include<algorithm> #include<cmath> #include<bitset> using namespace std;int n,D,x[110];bool…