2 views

Uploaded by Zack Obega

This show some exercises of vectors matrices

- Group Theory - Lecture Notes Complete 3rd Ed
- understanding
- Matrices
- Feedback — Quiz Week 2o
- R Short Tutorial
- Lec12 13 Arrays
- Current Bottlenecks in the Scalability of OpenFOAM on Massively Parallel Clusters-2
- Matrix Algebra - Appendix 2 - IMSA in Chemo Metrics
- Divide and Conquer
- Matlab Course Math292 Math391
- 5th Matrices Cxc Questions
- Exercises 3
- Matrices and Determinants PDF
- Arrays in Matlab
- GuideToNumpyMIT
- Q4_LM_RKC_T4_GRP02
- Anjali
- Java Matrices
- CZ1102 Computing & Problem Solving Lecture 12
- Semester II Practicals List

You are on page 1of 9

Definitions

Vectors and matrices: set of elements (array).

%%Row vector

row=[5 88 3 11] %Mind the spaces in between the values.

row(2)

Creating a subvector

sub1=row(2:4) %Sequential indexes

sub1(2)=16

sub1(4)=22

Decreasing vector

vec_dec=10:-2:1

vec_dec=1:-2:10 %Empty vector, the lower limit is first.

rowtrans = row'

Creating matrices and basic commands to deal with them

mat=[1 2 3

4 5 6] %The rows can be divided in lines.

mat=[1:3;4:6]

mat(1) %it will refer to the element of the first row, first column

mat(5) %it will refer to the element in the first row, column tree.

mat(4,:)=[20 30 40] % Adds the row No. 4 and fills the 3rd with zeros.

mat =

1 20 3

20 30 40

0 0 0

20 30 40

mat(:,5)= [20 30 40 50]' %Adds the row No. 4 and fills the 3rd with zeros.

mat =

1 20 3 0 20

20 30 40 0 30

0 0 0 0 40

20 30 40 0 50

mat =

1 20 3 0

20 30 40 0

0 0 0 0

20 30 40 0

mat =

1 20 3 0

20 30 40 0

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

A =

1 2 3

4 5 6

7 8 9

B=A'

B =

1 4 7

2 5 8

3 6 9

Multiplication

B*A

ans =

66 78 90

78 93 108

90 108 126

a=[4 9 1]

a =

4 9 1

a*B

ans =

25 67 109

B =

1 4 7

2 5 8

3 6 9

A.*B

ans =

1 8 21

8 25 48

21 48 81

A+B

A-B

Division

A./B

B./A %The order matters

A.\B %Elementwise but dividing the elements from B by the one from A

Potencies

Z =

0 0

0 0

0 0

z =

0

0

0

Ones =

1 1 1 1

1 1 1 1

1 1 1 1

1 1 1 1

1 1 1 1

ans =

1 0 0 0

0 1 0 0

r=[1 2; 3 4]

r =

1 2

3 4

ans =

1 2 1 2 1 2

3 4 3 4 3 4

1 2 1 2 1 2

3 4 3 4 3 4

1 2 1 2 1 2

3 4 3 4 3 4

1 2 1 2 1 2

3 4 3 4 3 4

ans =

0.8147 0.9134

0.9058 0.6324

0.1270 0.0975

ans =

-2 -4 3 3 4

1 5 -4 5 5

5 5 -1 2 2

5 0 5 -5 3

% Example

ls=linspace(3,15,5)

ls =

3 6 9 12 15

Hypermatrices:

One matrix of i x j dimensions and k "layers".

% Example

AA(:,:,1)=[1 2 3; 4 5 6]

AA(:,:,2)=[2 3 4; 5 6 7]

%Example

AA(:,:,2)

- Group Theory - Lecture Notes Complete 3rd EdUploaded bysjhsjh
- understandingUploaded byTomas Aragon
- MatricesUploaded byjoni jiniani
- Feedback — Quiz Week 2oUploaded byjcvoscrib
- R Short TutorialUploaded byIda Yuni Fitri
- Lec12 13 ArraysUploaded byAyush Narayan
- Current Bottlenecks in the Scalability of OpenFOAM on Massively Parallel Clusters-2Uploaded byyurigananauta
- Matrix Algebra - Appendix 2 - IMSA in Chemo MetricsUploaded bylilith1984
- Divide and ConquerUploaded byAngel Hugo Ocaña Pineda
- Matlab Course Math292 Math391Uploaded byHussein Dhaini
- 5th Matrices Cxc QuestionsUploaded byS. Allen
- Exercises 3Uploaded byMila Anasanti
- Matrices and Determinants PDFUploaded byARANGWALA
- Arrays in MatlabUploaded byvat007
- GuideToNumpyMITUploaded byjasgdleste
- Q4_LM_RKC_T4_GRP02Uploaded byÄlex Cepeda
- AnjaliUploaded bymanoj
- Java MatricesUploaded byJosué Guillén
- CZ1102 Computing & Problem Solving Lecture 12Uploaded byCharmaine Chu
- Semester II Practicals ListUploaded bymalliknl
- asdfasUploaded byConhecimento_Livre
- Fortran ArraysUploaded byRam Kee
- Topic-Two Dim ArraysUploaded bymikemylo
- Mathematicalmethods Lecture Slides Week5 LinearAlgebraIUploaded bylouissi
- Matrix and Tensor Calculus - Aristotle D. MichalUploaded byRavish Verma
- Matrix Algebra 2016Uploaded byandre
- StrassenUploaded byamukhopadhyay
- Repa HaskellUploaded byakshayhazari8281
- Meljun Cortes Data Structures ArraysUploaded byMELJUN CORTES, MBA,MPA
- Mathcad Prime 3 Essentials ExercisesUploaded byMárcio José Ottoni

- DISTRIBUCIÓNUploaded byZack Obega
- Tipos de subestaciones eléctricasUploaded byZack Obega
- Inportatn Matlab FunctionsUploaded byZack Obega
- transmision1Uploaded byZack Obega
- Laws of ThermodynamicsUploaded byAndrey_gp
- Mini Wind NoteUploaded byZack Obega
- Lab MUploaded byZack Obega
- Lab MUploaded byZack Obega
- Study Planificacion EstrategicaUploaded byZack Obega
- Anonymous functions examplesUploaded byZack Obega
- Voltage Regulation in LV Grids by Coordinated Volt-Var ControlUploaded byZack Obega
- Builtin Matlab FunctionsUploaded byZack Obega
- manual+dilate1Uploaded byZack Obega
- IntroducciónUploaded byZack Obega
- Useful Conversion FactorsUploaded byZack Obega
- para expoUploaded byZack Obega
- para expoUploaded byZack Obega
- DISTRIBUCIÓNUploaded byZack Obega
- interruptores-090526171933-phpapp01Uploaded byZack Obega
- para expoUploaded byZack Obega
- Barrios 1Uploaded byZack Obega
- para expoUploaded byZack Obega
- Petróleo studyUploaded byZack Obega
- Doc1Uploaded byZack Obega
- Campos eléctricos y magnéticos ELFUploaded byZack Obega
- Socialismo vs CapitalismoUploaded byZack Obega
- Libertad CeroUploaded byZack Obega
- Subestaciones eléctricasUploaded byZack Obega
- General Keyboard ShortcutsUploaded byZack Obega

- .net coreUploaded byMuhammad Khurram Adeel
- TJPhDFullUploaded byLy TheDan
- Iso 9001Uploaded byAditya Beri
- Net banking mini projectUploaded byTrupti Suryawanshi
- Framework for Parents' PerceptionUploaded bykonong
- Read An Excerpt From 'Why We Work' By Barry SchwartzUploaded byOnPointRadio
- SECM-15-129Uploaded byJamsheed
- Navaneetham Nov 2009Uploaded byguruvayur
- Mac Integration Basics 10.12 GuideUploaded bySorin Silviu Guta
- Homax Texture Gun 4610Uploaded bydpberry
- My Kingdom Come The Mormon Quest for GodhoodUploaded byEd Decker
- Seminar on Trends in education general and nursingUploaded byKrishna Muralimoothedath
- research reportUploaded byapi-360138201
- 3rd Sem_Civil EngineeringUploaded byanirbanpwd76
- Online Assessment Strategies: A PrimerUploaded bymsksmack
- Handling of Absolute Photometry Data in EULUMDAT FilesUploaded bymoezzat13
- 962327611Uploaded byAnonymous iTzCnM
- body paragraphsUploaded byapi-319108369
- 2001-2FUploaded bySamara Costa
- Design FMEA Workshop by TetrahedronUploaded bytetrahedron
- Circle Hough TransformUploaded bylizhi0007
- A Measurement System for Global Variables in ArtUploaded byflorouskos
- Vision - Cloud Finance DataUploaded byStudy Iit
- Sword Art Online 16.5Uploaded byMamoru Hikari
- Superconducting MaterialsUploaded byvishal kumar sinha
- 7SJ80Uploaded byRicardo Hernandez
- Rpp XII Fisika IntiUploaded byJulianto Fufuk
- Some Famous PrayersUploaded byacts2and38
- 3 3 4 aenergycodes docxUploaded byapi-355856202
- In Nicomachean Ethics Book IX Chapter 8Uploaded byArmando Juan Fernandez