Sideway
output.to from Sideway
Draft for Information Only

Content

  MatLab: Array Manipulating Functions
   Elementary Array Manipulating Functions
   Array Creation and Concatenation Functions
    Examples
   Array Indexing Functions
    Examples
   Array Sizes and Dimensions Functions
    Examples
   Array Sorting and Reshaping Functions.
    Examples

MatLab: Array Manipulating Functions

Major Reference Source: MatLab Verson 7.0

Since all types of data in MatLab are stored in the form of arrays, MatLab package provides some elementary array manipulating functions.

Elementary Array Manipulating Functions

Besides elementary arithmetic function and common mathematical functions, MatLab package also provides  some basic array manipulating functions for manipulating matrices and arrays.

  • Array Creation and Concatenation Functions

  • Array Indexing Functions.

  • Array Sizes and Dimensions Functions

  • Array Sorting and Reshaping Functions.

Array Creation and Concatenation Functions

Function Description
accumarray(A,B) to construct a new array by accumulating the elements of an array B according to the corresponding index specified by the array A in a row vector form with others are zeros.
blkdiag(A,B,...) to construct a new matrix by placing the specified list of matrices, A,B,...,  diagonally with others are zeros.
eye([A,B],C) to construct a new matrix by placing one diagonally with others are zeros of dimension A-by-B and optional class C or a A-by-A identity matrix, If B is not specified.
false([A,B,..]) to construct a new false array by placing False or logical zeros of dimension according to the specified the list of dimension A-by-B-by-... or a A-by-A square matrix, If only one dimension A is specified. False by itself is short-hand for logical(0)
freqspace  
linspace(a,b,n) to construct a new linearly spaced row vector pf n points with value between and including a and b. The default number of points is 100 points If n is not specified.
logspace(a,b,n) to construct a new logarithmically spaced row vector pf n points with value between and including decades 10^a and 10^b. The default number of points is 50 points If n is not specified. And if b is equal to pi, then the value of points becomes between and including 10^a and pi.
meshgrid  
ndgrid  
ones  
rand  
repmat  
true([A,B,..]) to construct a new true array by placing True or logical ones of dimension according to the specified list of dimension A-by-B-by-... or a A-by-A square matrix, If only one dimension A is specified. True by itself is short-hand for logical(1)
zeros  
cat  
horzcat  
vertcat  

Examples

 IMAGE...  IMAGE... 1

Array Indexing Functions

Function Description
colon  
end  
ind2sub  
sub2ind  

Examples

1

Array Sizes and Dimensions Functions

Function Description
length  
ndims  
numel  
size  
height  
width  
iscolumn  
isempty  
ismatrix  
isrow  
isscalar  
isvector  

Examples

1

Array Sorting and Reshaping Functions.

Function Description
circshift  
ctranspose  
diag  
fliplr  
flipud  
ipermute  
permute  
reshape  
rot90  
shiftdim  
issorted  
sort  
sortrows  
squeeze  
transpose  
vectorize(a) to vectorize an expression a.

Examples

1

 


©sideway

ID: 140400005 Last Updated: 4/14/2014 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019