haibaraxx的个人博客分享 http://blog.sciencenet.cn/u/haibaraxx

博文

Arrays, matrices, vectors and scalers 数组、矩阵、向量和标量

已有 2389 次阅读 2016-3-4 00:01 |个人分类:Matlab|系统分类:科研笔记| and, arrays, Vectors, matrices, scalers

An array is a variable type that stores the collection of similar items which can be referenced by their positions. Arrays can have 1 dimension, 2 dimensions, 3 dimensions or even larger dimensions. The elements of an array can be arrays, making it a large dimensional array.


Matrix: 2-dimension array.  

e.g. In Matlab m = [1 2 3 4; 5 6 7 8] is a 2-by-4 matrix.


Vector: 1-dimension array.  A row vector has a single row and a column vector has a singal column.

e.g. In Matlab v_r = [1 2 3 4 5 6] is a row vector and v_c = [1; 2; 3; 4; 5; 6] is a column vector.


Scalar: 1 by 1 matrix. Normally we call it a number.

e.g. 2




https://blog.sciencenet.cn/blog-3031432-960294.html

上一篇:LaTex notes
下一篇:LibreOffice: freezing rows and columns in LibreOffice Calc
收藏 IP: 134.1.1.*| 热度|

2 魏焱明 刘洋

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-10-20 09:49

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部