MATLAB Tutorial
40 pages
English

MATLAB Tutorial

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
40 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

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 ...

Informations

Publié par
Nombre de lectures 13
Langue English

Extrait

OutlineMatrixanOdeparitnoPsol&tapGrcshimpCoxNleebmuOFsroolRleHpp
2008
1 / 16
MATLAB
Tutorial
5,
June
tuOxinaOdepilenaMrtlot&GraprationsPNxelebmuscihpmoCelpHpFOrsooRl
Help Help in MATLAB
FOR loop For loop
Plot & Graphics Plot Labeling
Complex Numbers Basic Operations
Matrix and Operations Matrix and Operations Some Basic Matrices
162/
heocITnsmedickamafonoiesu,xirternv>>set(deanA)>6=svni>a)A(0=snsize>>size(A)=22DItereimantnnaid
1 4
>> >> >>
A A B
= = =
[3 1; [3,1; [3 5;
6 4] 6,4] 1 2]
I
To
enter a matrixA=
1-0.6176-7.06.66
3 / 16
Matrix and Operations Matrix and Variables 63
0.5000000ontilosPdOanrapeaMenxirtOiltuFORloopHxNumbersscoCpmel&trGpaihple
>>inv(A)(A)ans=6760-1.66na=s.066500.3/001.7-0000
I
I
41
size
Matrix and Operations Matrix and Variables 3 6
61
>> >> >> To >>
A = [3 1; 6 4] A = [3,1; 6,4] B = [3 5; 1 2] check dimension of a matrix, use size(A) = 2 2
To
enter a matrixA=
toG&snlPciCsarhpxandatriatioOperMeniltuOpoolpleHplomNuexermbORsFrse>>dettandinveetmrninaIeD
elNxoCpmsrOFmuebpHelRloopOutlinertaMnaxiepOditarsPont&loapGrcshi/16
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
14
I I
I
3
mplexNumaphicsCoooHplepebsrOFlRdOanixtrManeliutrG&tolPsnoitarepOA=D>>noi54-0=DB-
4 / 16
Matrix and Operations
2
Basic Operations
Addition >> C=A+B C = 6 6 7 6
IIractSubt
Matrix and Operations Basic Operations
4 / 16
I
Addition >> C=A+B C = 6 6 7 6 Subtraction >> D=A-B D = 0 -4 5 2
I
pleHpoolROFrsbeumxNlempCocsaMenxirtOdnaarepontilosPGrt&hiapOutli
Matrix and Operations
Plot
5 / 16
Outline
Basic Operations
Matrix and Operations
I
Multiplication
ilpiitac>>no*A=EMaIixtrltMuiwesne-tpiiluMtl0172BE=1Elem238I8659
&
Graphics
Complex
Numbers
FOR
loop
Help
>>onticaE=*BA.E=
onsPratidOpeixanaMrtilenOtuooRlFOrsbeumxNlepmoCscihparG&tol
Multiplication IMatrix Multiplication >> E=A*B E = 10 17 22 38
Matrix and Operations Basic Operations
6
I
659=1/58elpHpelEI-wismenttipleMuloi>ncita*.EBE>A=
1/5
IMultiplication IMatrix Multiplication >> E=A*B E = 10 17 22 38 IElement-wise Multiplication >> E=A.*B E = 9 5 6 8
Matrix and Operations Basic Operations
6lineMatrOutPsnoitarepOdnaximpCocshiapGrt&lolRoosrOFmuebelNxppHel
00001-.8000000.8
Plot
Matrix and Operations
Outline
6
Numbers
Complex
Graphics
&
Help
loop
FOR
(vni*A=F>>0000.8002.-100005.F=B)
Basic Operations
Matrix and Operations
16
/
I
Division
IElt-wiemenivisesiD=F.Ano>>1>>F=A/BF=5.00001-.20000.800001-F=/B001.0.00002000.6.2000000BAI
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents