0% found this document useful (0 votes)
57 views

PDF Created With Pdffactory Trial Version

This document provides examples of mathematical expressions and their results, including: 1. Sum, transpose, diagonal, and rotation operations on matrices. The sum operation finds the sum of elements in a row or column vector. Transpose switches rows and columns. 2. Examples are given to demonstrate calculating the sum and transpose of matrices. 3. Notes explain how to find the sum of all elements in a multi-dimensional matrix by first taking the sum of each column, resulting in a row vector whose elements can then be summed.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

PDF Created With Pdffactory Trial Version

This document provides examples of mathematical expressions and their results, including: 1. Sum, transpose, diagonal, and rotation operations on matrices. The sum operation finds the sum of elements in a row or column vector. Transpose switches rows and columns. 2. Examples are given to demonstrate calculating the sum and transpose of matrices. 3. Notes explain how to find the sum of all elements in a multi-dimensional matrix by first taking the sum of each column, resulting in a row vector whose elements can then be summed.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

:

) ( ) ( ) ( ) ( :
: ) : ( sum
:
) : sum(x ) ( x ) . ( x
) : sum(x ) ( x ) (m,n
) . ( 1,n
:
x=[ 1
2
3
4
5
6
]
)y = sum(x
y = 21
]

3;4

[=a
=a

3
6

2
5

1
4
)b = sum(a
b=[ 5

: ) ( x ) (m,n
) ( x
) . ( x

PDF created with pdfFactory trial version www.pdffactory.com

: ) ( a :
))c = sum(sum(a
c = 21
: :
.
: :

) ( 16 ) ( 10 ) ( 7 ) ( 1
) ( 4 ) ( 6 ) ( 11 ) ( 13 .
MATLAB ) ( } { :
: a ) ( a ) (
) . ( a
: :

: a ) ( a ) (
) . ( a ) ( . ) . ( a.
: :

PDF created with pdfFactory trial version www.pdffactory.com

.
:

: ) : ( diag


a(1,1) : ) a(2,2 ) a(3,3 ) . ( a
) ( diag :
) : diag(x ) (x }
{
) . ( x
: :
2

] 3
0
0
3

0
2
0

a=[1
)x = diag(a
=x
1
0
0

) : diag(x ) (x ) ( m,n
) ( x .
:

PDF created with pdfFactory trial version www.pdffactory.com

: ) ( :

: ) ( ) : ( fliplr
) / ( }
{ .
: :

: MATLAB
) ( fliplr
.
: ) ( fliplr

) ( flipud ) ( ) / ( }

{ .

PDF created with pdfFactory trial version www.pdffactory.com

You might also like