matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Array Creation
来源:互联网 发布:手机一键截屏软件下载 编辑:程序博客网 时间:2024/06/08 07:05
镇场诗:慈心积善融学习,技术誓为大家学。善心速造多好事,前人栽树后乘凉。我今于此写经验,愿见文者得启发。
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Tutorials-matrices and arrays- Array Creation
To create an array with four e
lements in a single row, separate the elements with either a comma (,) or a space.
为了创建一个四元素单行数组,各个元素要么用逗号,要么用空格隔开。
returns 返回
a =
1 2 3 4
This type of array is a row vector. 这是一个行向量
为了创建一个多行的矩阵,分离每一行用分号。
a = [1 2 3; 4 5 6; 7 8 10]
a =
1 2 3
4 5 6
7 8 10
Another way to create a matrix is to use a function, such as ones, zeros, or rand. For example, create a 5-by-1 column vector of zeros.
创建一个矩阵的其他方式就是用函数,比如ones, zeros, 或者rand。比如,我们要创建一个五行一列的全0列向量。
z =
0
0
0
0
0
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
感恩帮助过我的人。博客的精髓在技术部分,更在镇场一诗。
我是一个新手,翻译还有许多不完善的地方,请您看翻译的时候多多思考。
MATLAB是一个优秀的软件,值得学习。如果您有一些不会的知识,咱们可以相互讨论。
如果您认为翻译可以有改进的地方,有错误的地方,请留下评论,我会处理的。
注:如果我的博文无意中侵犯了您的权益,请告知。看到您的告知后,我将及时作出处理。
0 0
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Array Creation
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Matrix and Array Operations
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Concatenation and Complex Numbers
- matlab2014a中help与参考页翻译 Tutorials- array indexing
- matlab2014a中help与参考页翻译 tutorials-desktop basics
- matlab2014a中help与参考页翻译 and
- matlab2014a中help与参考页翻译 Tutorials – workspace variables
- matlab2014a中help与参考页翻译 limit
- matlab2014a中help与参考页翻译 find
- matlab2014a中help与参考页翻译 roots
- matlab2014a中help与参考页翻译 all
- matlab2014a中help与参考页翻译 not
- matlab2014a中help与参考页翻译 or, |
- matlab2014a中help与参考页翻译 xor
- matlab2014a中help与参考页翻译 MATLAB Product Description
- matlab2014a中help与参考页翻译 cat
- matlab2014a中help与参考页翻译 Character Strings
- matlab2014a中help与参考页翻译 Calling Functions
- ZipFile v.s. ZipInputStream in java.util.zip
- 背包九讲
- leetcode(2), Nin Game详解(python)
- Codeforces Round #350 (Div. 2)
- Java核心基础(1) 基本语法
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Array Creation
- CodeForces 483A Counterexample
- 《深度探索C++对象模型》学习笔记之Data语意学
- 当我加载配置文件时报错:Call to undefined method CI_Config::config()
- 四种最短路径算法对比
- [Android]百度地图开发之SDK开发环境搭建
- Android真机无法链接eclipse,解决方案
- 动态规划 problem F
- Java多线程编程4--Lock的实例--实现生产者/消费者模式:一对一、多对多交替打印