Outline Matrix and Operations Plot & Graphics Complex Numbers FOR loop HelpMATLAB TutorialJune 5, 20081/16Outline Matrix and Operations Plot & Graphics Complex Numbers FOR loop HelpMatrix and OperationsMatrix and OperationsSome Basic MatricesPlot & GraphicsPlotLabelingComplex NumbersBasic OperationsFOR loopFor loopHelpHelp in MATLAB2/16I To check dimension of a matrix, use size>> size(A) = 2 2I Determinant and inverse>> det(A)ans =6>> inv(A)ans =0.6667 -0.1667-1.0000 0.5000Outline Matrix and Operations Plot & Graphics Complex Numbers FOR loop HelpMatrix and OperationsMatrix and Variables 3 1I To enter a matrix A =6 4>> A = [3 1; 6 4]>> A = [3,1; 6,4]>> B = [3 5; 1 2]3/16I Determinant and inverse>> det(A)ans =6>> inv(A)ans =0.6667 -0.1667-1.0000 0.5000Outline Matrix and Operations Plot & Graphics Complex Numbers FOR loop HelpMatrix and OperationsMatrix and Variables 3 1I To enter a matrix A =6 4>> A = [3 1; 6 4]>> A = [3,1; 6,4]>> B = [3 5; 1 2]I To check dimension of a matrix, use size>> size(A) = 2 23/16Outline Matrix and Operations Plot & Graphics Complex Numbers FOR loop HelpMatrix and OperationsMatrix and Variables 3 1I To enter a matrix A =6 4>> A = [3 1; 6 4]>> A = [3,1; 6,4]>> B = [3 5; 1 2]I To check dimension of a matrix, use size>> size(A) = 2 2I Determinant and inverse>> det(A)ans =6>> inv(A)ans =0.6667 -0.1667-1.0000 0.50003/16I Subtraction>> D=A-BD =0 -45 2Outline ...
Matrix and Operations Matrix and Variables To enter a matrixA=63 >> A = [3 1; 6 4] >> A = [3,1; 6,4] >> B = [3 5; 1 2] To check dimension of a matrix, usesize >> size(A) = 2 2 Determinant and inverse >> det(A) ans = 6 >> inv(A) ans = 0.6667 -0.1667 -1.0000 0.5000