2 views

Uploaded by Pragyan Nanda

matrix indexing

- LinAlgSec3.1
- G10 - Matrix and Vectors
- java questions
- An Introduction to Matlab for Econometrics
- Complete Tutor
- Example 2
- Set 11 Sstlepas Ting 5
- Lec-5
- An Introduction to R
- Control Lab Problem Sheet
- tut2
- Big Data File in R
- Arrays
- Brief R Tutorial
- 8.7.3. Applying Determinants
- Unit_1.6 (1)
- CS10-1L Syllabus
- 10CPL16-26_CPLab
- 7 Matrices
- Graph Functions Worksheet #01, Algebra revision from GCSE Maths Tutor

You are on page 1of 3

John Pearson

Matrix Indexing

A(1, 1) A(1, 2) A(1, 3) A(1, 4)

A(2, 1) A(2, 2) A(2, 3) A(2, 4)

1. Matlab uses (row,column) subscripts to label matrices:

A(3, 1)

A(3, 2) A(3, 3) A(3, 4)

A(4, 1) A(4, 2) A(4, 3) A(4, 4)

A(1) A(5) A(9) A(13)

A(2) A(6) A(10) A(14)

2. Matlab numbers down each column in turn: A(3) A(7) A(11)

A(15)

A(4) A(8) A(12) A(16)

3. Get a single element: A(2,3) '

4. Multiple elements: A([2 5],3) '

5. Get subrows and subcolumns: A(2:4,3) '

,

A(2,1:2) '

1

6. Disconnected subrows: A([2 4],2:4) '

7. Get sub-blocks: A(2:5,3:4) '

8. Get single row, column: A(2,:) '

, A(:,3) '

9. Multiple rows, columns: A(2:4,:) '

, A(:,3:4) '

10. Whole matrix: A(:,:) '

11. Entire array (as column vector): A(:) '

..

.

2

Logical Indexing

1. For logical indexing, if L is a logical vector with the same dimensions as

A, you can always treat L as being equivalent to the indices returned by

find(L):

[0 1 0 1 1 ] ' [2 4 5]

2. This means that we can replace any expression involving logical indices

by the expression involving regular indices:

From 1, we have

L ' [2 4 5]

M ' [2 4]

so

A(L, M) ' A([2 4 5], [2 4]) '

.

- LinAlgSec3.1Uploaded byvincentoid
- G10 - Matrix and VectorsUploaded byEduar Rodriguez
- java questionsUploaded bySudeep Mishra
- An Introduction to Matlab for EconometricsUploaded byAlzarani
- Complete TutorUploaded by2faan
- Example 2Uploaded byTarekHemdan
- Set 11 Sstlepas Ting 5Uploaded byRavendran Munian
- Lec-5Uploaded byParas Dorle
- An Introduction to RUploaded bykhurshid
- Control Lab Problem SheetUploaded bySourabh Hajra
- tut2Uploaded bygermanschultze
- Big Data File in RUploaded byPrabhu Goyal
- ArraysUploaded byAkarsh Mishra
- Brief R TutorialUploaded byPark Sinchaisri
- 8.7.3. Applying DeterminantsUploaded bychunkymonkey323
- Unit_1.6 (1)Uploaded byLaxman Naidu N
- CS10-1L SyllabusUploaded byJoyce
- 10CPL16-26_CPLabUploaded byHridya Krishna
- 7 MatricesUploaded byvaibhav
- Graph Functions Worksheet #01, Algebra revision from GCSE Maths TutorUploaded bygcsemathstutor
- TI-89 Manual With SolutionsUploaded byRuben Perez Rivera
- MATRICES.pdfUploaded bysayondeep
- nn01.pdfUploaded byChiều Tàn
- Regional development and Organization of space: An Approach to the Dry Port location using the Hybrid Method Fuzzy-AHPUploaded byIJAERS JOURNAL
- Assignment XII RemedialUploaded byEshwari Narasimhan
- CSE123_Lecture8_2012.pdfUploaded byHasanMert
- Some Characteristic Function of Fuzzy MatrixUploaded byarcherselevators
- MDB3053 Chap9 LinearAlgebra Part 1 May16Uploaded byVikneshwaran Balakrishnan
- Dcap407 Data StructureUploaded byJagat Mishra
- Reverse Engineering for BeginnersUploaded bycLick1338

- MarkdownUploaded byPragyan Nanda
- 17GeometricSearch.pdfUploaded byAnil
- Lecture 12Uploaded byPragyan Nanda
- notes_5.pdfUploaded byPragyan Nanda
- 2001-principlesforecastingUploaded byFrederico Sande Viana
- Practical 9Uploaded byPragyan Nanda
- Time Series Forecasting Using Holt-Winters Exponential SmoothingUploaded byphu_2000_99
- Data_Clustering_Theory_Algorithms_and_Ap.pdfUploaded byPragyan Nanda
- ZhangEtAl1998_ForecastingwithArtificialNeuralNetworks_IntJForecastV14p35-52_10.1.1.138Uploaded byalexandru_bratu_6
- Model Selection for Primal SVMUploaded byPragyan Nanda
- PHI-LEARNING-Computer-Science-IT-Engineering-Electrical-Electronics-Mechanical-Civil-Chemical-Metallurgy-and-Agricultural-Catalogue-2016.pdfUploaded byPragyan Nanda
- Chap 7Uploaded bystruggler17
- Projects OverviewUploaded byPragyan Nanda
- Matlab and Its ApplicationUploaded byPragyan Nanda
- Notes on Nonseasonal ARIMA Models--Robert NauUploaded byPragyan Nanda
- A Study on Using Business Intelligence fUploaded byPragyan Nanda
- manual.pdfUploaded byPragyan Nanda
- manual.pdfUploaded byPragyan Nanda
- The 7 Basic PlotsUploaded byPragyan Nanda
- test.xlsxUploaded byPragyan Nanda
- index cheat.pdfUploaded byPragyan Nanda
- NN ExamplesUploaded byMinh Map Vu
- NN ExamplesUploaded byMinh Map Vu
- SumitabahdasUploaded byShweta Verma
- IBF04 Neural ForecastingUploaded byPragyan Nanda
- indexing_cheatsheet.pdfUploaded byPragyan Nanda
- KIITEE - 2014Uploaded byPragyan Nanda
- 10.1.1.466.8377.pdfUploaded byPragyan Nanda
- time_series Machine LearningUploaded byakragnarock

- 3ADW000165R0201 Technical Data e b Acr4Uploaded bydorin serban
- An Essay on Man Epistle IUploaded byAnonymous SY1kBzu
- Analysis of English Subtitles Produced for the Taiwanese Movie Cape No.7 Auckland UnversityUploaded byAzalea Nadya Putri
- OracleUploaded byalc
- Manual de Referencia MySQL 5.7 InglésUploaded byagguelos_x
- Chapter5 Modal AuxiliariesUploaded byDNIndri
- SSC SyllabusUploaded byannu singh
- Understanding CultureUploaded byRhon Bergado
- Irregular Plurals ListUploaded byAnonymous OQmcDMg
- 53842535-CTS285-Final (1)Uploaded byKeno Grant
- dm0611read2-a4Uploaded by1234abv
- DbmsUploaded bykhem sharu
- Complete Sun Solaris Commands ListUploaded byakdenizerdem
- The Lost World of Adam and Eve a ResponseUploaded byPedro Henrique
- C1_Structure of Information in Written TextsUploaded byAlina Ioana Moldovan
- CME OverviewUploaded byTapiwa Munetsi
- Acmepacket Configuration Basics Net-Net 3000 4000 022013 EnUploaded byuwb_group
- Aarts _ Van Den Bos (2011) PsySci Self-Agency _ Beliefs in Free WillUploaded bysdkaduzen
- 20-26 Hidden Language of AdvertisingUploaded bySafa Kaabi
- Box2d ManualUploaded bykonjuslav
- EEM336 - 01 - Introduction to the Microprocessor and ComputerUploaded bysakalan
- MODUL English for CommunicationUploaded byZurainy Md Isa
- StringsUploaded byanon_932040449
- revised kerenliu fall2015i4syllabusUploaded byapi-277763254
- Einar Ólafur Sveinsson - Dating the Icelandic sagasUploaded byMihai Sarbu
- spmpUploaded byamarpreetkaur
- Binary SearchUploaded byteklitber
- ReadmeUploaded byMilroy Dourado
- AreaText1Uploaded bysatydevsinghnegi
- Explain Briefly the Computer Integrated Manufacturing PDFUploaded byBeth