14 views

Uploaded by Sandeep Kumar

MALAB Basics introduces you to the user interface and various sections and dialog windows.

- Matlab Ieee
- Matlab Notes
- Skills Matrix
- Solutions Manual
- iMcAm Capture Shahid
- Java Programs
- matlab
- MATLAB OR BASIC SIMULATION LAB CSE 222.pdf
- 16bme0577 Secd Exc1080 Report
- Probability
- Introduction to Matlab Mit
- Modal analysis on civil engineering .pdf
- Ant- Appendix and Interfacessdsdf
- Introduction
- wendingmc
- Installing Matlab
- Matlab
- Image Processing
- Pid Back
- Modeli̇ng Cs i̇n Matlab

You are on page 1of 5

Array is the collection of number either in row or in column or in both row and column. According to arrangement of numbers in the array they are classified as following. 1) Scalar: If an array contains only one element then it is called Scalar.

2) Vector: If an array contains n number of element either in row or in column then that array is called as vector. Thus in MATLAB there are two types of Vectors a) Row Vector b) Column Vector

3) Matrix: If an array has n numbers arranged in the rectangular form in rows and column both than it is called matrix.

Declaration of Array: To declare array in the MATLAB command window different methods are available. All the possible syntax for declaring the arrays in MATLAB are tabulated follow.

TFM/001

Syntax

Variable name = *a b c d .+ (For row vector ) Variable name = *a; b; c; d.+ (For column vector)

2)

Variable name = [m : q : n] m first term q spacing between consecutive term n last term

3)

4)

pntAH = *a,b,c,d.+ (For row vector) pntAV = *a,b,c,d.+ (For column vector) Variable name = [a b c; d e f; g h I]

5)

3 Matrix

1)

2) 3) Note:

Variable name = [1st row elements;2nd row elements;3rd row elements] variable name =[linspace(xi,xf,n);linspace(xi,xf,n); linspace(xi ,xf ,n)]

1) Syntax for declaring the matrices are given in the fourth row of the table. 2) All above syntaxes are used to manipulate a matrix.

TFM/001

Steps: In step one matrix of order 36 is declared (matrix having 3 rows and 6 columns) In step two syntax a (4, :) signifies Elements of each column corresponding to 4th row. As in the above example there is no 4th row but using a (4, :) command 4th row is added to the matrix a and value is assigned to it according to the commands linspace (81, 100, 6) In the next step a (: , 6) signifies Elements of each row corresponding to 6th column and it is assigned [1;2;3;4] . Thus elements of each row in 6th column are replaced by 1, 2, 3 and 4.

TFM/001

In the next line a (4, 5) represents the element corresponding to the position 45 and value is assigned to it as [100]. Thus 96.2000 in the a is replaced by 100.0000

TFM/001

In the next step command a (4, 4) = [b (4, 4)] is used which signifies the element in matrix a (declared in previous example) at position 44 is assigned the value of the element at position 44 in the matrix b. Thus 92.4000 in the matrix is replaced by 36.4000.

Next command a(:,2)= [b(:,2)] signifies the each elements of each row corresponding to the 2nd column in matrix a is assigned the value [b(:,2)] ,where b(:,2) means the elements of each row corresponding to the 2nd column in matrix b. Thus 2nd column is the matrix a is replaced with the values of 2nd column of matrix b.

Important note After each command matrix a get updated and the following commands are applied on that updated matrix only.

TFM/001

- Matlab IeeeUploaded bychandueee
- Matlab NotesUploaded byJyothi Prakash
- Skills MatrixUploaded bynehis1310
- Solutions ManualUploaded byadsl6959
- iMcAm Capture ShahidUploaded byRahul Kumar Meena
- Java ProgramsUploaded byManoj Mahajan
- matlabUploaded byMark Reurison
- MATLAB OR BASIC SIMULATION LAB CSE 222.pdfUploaded byAmar Deep
- 16bme0577 Secd Exc1080 ReportUploaded byRizwan Hita
- ProbabilityUploaded bySchiender Jones
- Introduction to Matlab MitUploaded byHalil İbrahim Küplü
- Modal analysis on civil engineering .pdfUploaded byar_frank
- Ant- Appendix and InterfacessdsdfUploaded byAilenoator Reuben Amiens
- IntroductionUploaded byAvery Poole
- wendingmcUploaded byVoskula Shivakrishna
- Installing MatlabUploaded byPM
- MatlabUploaded byMaryam Mansor
- Image ProcessingUploaded byvasthav27
- Pid BackUploaded byPauline Luna
- Modeli̇ng Cs i̇n MatlabUploaded byGökhan Yüksek
- MATLABUploaded byShailin Sequeira
- Class SyllabusUploaded bymathew_lazarus
- Intro Tom at LabUploaded byasma246
- 2 Intro to MatricesUploaded byMatt Brenner
- M 1.1 Getting Started With MATLABUploaded byAswathy Vijayakumar
- Major2-KEYUploaded bydarkline81
- UntitledUploaded bya4224219
- MatricesUploaded byAbidah Ali
- DocumentUploaded byNurain Suryadinata
- Jwb Hipper 2Uploaded byAditya R. Achito

- Rural EntrepreneurshipUploaded bySandeep Kumar
- 8085Uploaded bySandeep Kumar
- 8085 Microprocessor Ramesh S. GaonkarUploaded byrohit31bark
- Final Hydro Generator ComponentsUploaded bySandeep Kumar
- Relay.pdfUploaded bySandeep Kumar
- 2-d Plot in MatlabUploaded bySandeep Kumar
- Integration of Renewable Energy SourcesUploaded bySandeep Kumar

- EE Scenario Editor ManualUploaded byViviane Maria Dos Santos
- Adding+Subtracting Polynomials.pdfUploaded bySamantha Davis
- Ch3- BOTH 2nd Part-Descriptive Statistics- Distribution ShapeUploaded byAbdu Abdoulaye
- Wr7 ManualUploaded byKeith Studlack
- Safety Gear TestingUploaded byFERNS
- Create Word Network VB Macro Vdb5Uploaded bymarc_a_smith
- ecoder_ugUploaded bytruongvinhlan19895148
- bpj lesson 24 and projectsUploaded byapi-307093461
- AIAA-2002-3150Uploaded bygengogo
- On Duplicate MAC AddressesUploaded byJefferson F. Ibera
- Programme on Demystifying Statistical Techniques for Risk ManagementUploaded byKhandaker Amir Entezam
- CH07Uploaded byJerr Thomas
- PDFM 4.0 BrochureUploaded byRubén Muñoz Torres
- Cisco Lan Switch and VlanUploaded bysujit mohan
- gams review 2-revisedUploaded byapi-302577842
- Digital Bio Pharm LTDUploaded bythomas shaw
- heather horsley resumeUploaded byapi-265752079
- Unix for Talend AbinitioUploaded byM MadhuM
- Kamal 8th Sem Mining 2074Uploaded bykamalshrish
- e&i Delay Analysis Report_feb'15Uploaded byRakesh Karan Singh
- Ferronance en Alta TensionUploaded byRukito Elec Tric
- Lisa McGarrity, Morningstar Associate General Counsel Featured on The Law Department as a Business Enabler by Chuki ObiyoUploaded byPR.com
- Chapter 9 - Understandability and Usability of DataUploaded byFoveros Foveridis
- Marina SlimFilter Manual HRUploaded byRoberto E Morán
- Writing a DSL in LuaUploaded byleafo
- Sellers and Kessenich - Vulkan Programming GuideUploaded byniksss
- Denko WS-BeldenUploaded byYanuar Zulkarnain
- Jinita Base Paper s1Uploaded byjayalakshmisnair
- EBiz Tax Seed DataUploaded byprasadv19806273
- TerminologyUploaded byManojkumar Thilagam