본문 바로가기
전기

MATLAB - Matrix / 매틀랩 - 매트릭스 (행렬)

by 자유로운 생활 2021. 1. 27.
728x90
반응형

Example1 : 4-by-5 matrix a

a = [1 2 3 4 5; 2 3 4 5 6; 3 4 5 6 7; 4 5 6 7 8]

Result of Example 1

Example2 : mth row and nth column, of a matrix mx ----- mx(m, n);

a = [ 1 2 3 4 5; 2 3 4 5 6; 3 4 5 6 7; 4 5 6 7 8];

a(2,5)

Result of Example 2

Reference : https://www.tutorialspoint.com/matlab/matlab_matrics.htm

 

MATLAB - Matrix - Tutorialspoint

MATLAB - Matrix A matrix is a two-dimensional array of numbers. In MATLAB, you create a matrix by entering elements in each row as comma or space delimited numbers and using semicolons to mark the end of each row. For example, let us create a 4-by-5 matrix

www.tutorialspoint.com

 

728x90
반응형