29 views

Uploaded by Muhammad Umair

Summarized version of 4 labs of MATLAB commands and important descriptions of all the linear Control System labs.

- workshop.ppt
- Computer Programming & Principles (C Language)
- 45778219-AnsysMatlab
- Matlab Introduction
- Matlab Notes Week 3
- Tutorial 1
- The 8085 Microprocessor Architecture
- Matlab Tutorial
- mathlab
- Gen 008
- Simulink (LCS) Commands
- Get 9 Quran Sawab in 9 Minutes (Islamic Book)
- Level 1 Course Notes
- 8085 Assembly Language Programs & Explanations 1.
- Matlab Notes
- MATB_143_fe_sem2_0910_with_solutions
- Differentiation With Vectors and Matrices
- Process Control Chp 6
- Vikram Mutneja (316049619)
- Introduction+to+Matlab

You are on page 1of 4

Vector & Matrices: Two methods for defining vectors: 1. A=*1 2 3 4 5 6 7 8 9+ 2. A=1:1:9 /* 1 is starting no. and other 1 is the step size and the last 9 is the last no of vector*/

Can add, subtract, multiply, divide two vectors by a+b, a-b, a*b, a/b .

Functions: In matlab pre-defined functions are provided such as Sin, Cos, log, Sqrt, exp as well as many others, and many commonly used constants such as pi, i or j for the square root of -1 are also incorporated in matlab Matrices: Defining a matrix: 1st method is by entering semicolon(;) in vector: B=*1 2 3 4;5 6 7 8;9 10 11 12+ 2nd method is by hitting the enter key B= 1234 5678

9 10 11 12

Matrices in MATLAB can be manipulated in many ways: Transpose: C=B' Multiply: 1. D=C*B 2. G=E.*F /*both matrices must be of same size*/ 3. For Cube : E.^3 Inverse: X=inv(E)

Eigen value of a matrix: eig(E) Polynomial: p=poly(E) Roots: roots(p) /* roots of polynomial*/

Lab 2:

Plotting: T=0:0.25:7; Y=sin(T); Plot(T,Y) Polynomial of : s4+1 Y=*1 0 0 0 1+ Multiplication of two polynomial: by using conv command X=*1 2+; Y=*1 4 8+; Z=conv(X,Y) Dividing two polynomial: by using deconv command *xx,R+=deconv(z,y)

Lab:3

Differentiation: using symbolic Math toolbox software so first create the symbolic expression: syms x F=sin(5*x) diff(f) Note: to take the derivative of a constant you must first define the constant as a symbolic expression For example: C= syms('5'); diff(C) if you just enter : diff(5) Matlab returns * + because 5 is not a symbolic expression

Symvar: If you do not specify a variable to differentiation with respect to, MATLAB chooses a default variable , the default variable is letter closer to x in alphabet. To determine the default variable that MATLAB differentiates with respect to use symvar command: symvar(f,1) Integration: If f is a symbolic expression then : Int(f) In contrast to differentiation, symbolic integration is more complicated task.

Lab 4:

Laplace Transform: Calculate the laplace F(s) transform of a function f(t) is simple in MATLAB. First specify the variables t and s as symbolic ones by using: >>syms t s Now define the function f(t) , the actual command to calculate the transform: >>F=laplace(f,t,s) Simplify : For simplified equation: >>simplify(F) Pretty: For pretty humanly written like equation: >>pretty(ans)

Inverse Laplace:

F=(s2

>>F=10*(s+2)/(s*(s^2+4*s+5)); >>ilaplace(F)

10(s-2) +4s+5)

- workshop.pptUploaded bykattaswamy
- Computer Programming & Principles (C Language)Uploaded byMuhammad Umair
- 45778219-AnsysMatlabUploaded bydarker_oblivion7233
- Matlab IntroductionUploaded byJayanth Bhargav
- Matlab Notes Week 3Uploaded byAshwin M
- Tutorial 1Uploaded byHemant Mayatra
- The 8085 Microprocessor ArchitectureUploaded byabhisheksharma123
- Matlab TutorialUploaded bynattaq12345
- mathlabUploaded byajitjk123
- Gen 008Uploaded byRea Faner
- Simulink (LCS) CommandsUploaded byMuhammad Umair
- Get 9 Quran Sawab in 9 Minutes (Islamic Book)Uploaded byMuhammad Umair
- Level 1 Course NotesUploaded byybeltagy3111
- 8085 Assembly Language Programs & Explanations 1.Uploaded byarunesh198
- Matlab NotesUploaded byMoorthi Velu
- MATB_143_fe_sem2_0910_with_solutionsUploaded byReyzian Hannan Alias
- Differentiation With Vectors and MatricesUploaded byENJ0YY0URDAY
- Process Control Chp 6Uploaded bysajni123
- Vikram Mutneja (316049619)Uploaded byMadalina Mirela Bivolaru
- Introduction+to+MatlabUploaded bydivyaagarwal
- Programming Patterns Some Common MATLAB Programming Pitfalls and How to Avoid ThemUploaded byAnoop Karnik
- MATRIX_OPERATION (JAVA PROGRAM PDF)Uploaded byAMRENDRA SINGH
- Time-Dependent Problems With the Boundary Integral EquationUploaded byjuapode8535
- Battery Modelling and Simulation Using Programmable Test EquipementUploaded byRiccardo Tc Bertollo
- CETPA Matlab Tutorial 1Uploaded byVikas Patel
- Matlab SlidesUploaded byalexandropouloulina
- Teaching Computer Programming to Engineering StudentsUploaded byHassan Rao
- Matlab an Introduction Lecture OneUploaded byNetsanet Jemal
- Ninteger ManualUploaded byAhmedEL-Naggar
- Matlab_Tutorial2Uploaded byrjkadivar

- Proof of De-Movier's.docxUploaded byMuhammad Umair
- ITC Lab 3 Sec EUploaded byMuhammad Umair
- All Faculty Schedule FALL2018 UIT TimetableUploaded byMuhammad Umair
- Time Table Summer 2017 UITUploaded byMuhammad Umair
- Check Your Vocabulary for IELTS Examination - WyattUploaded byminhvanyeudoi
- NED-Master Sheet of 18 Years[1] 2017 Laptop ListUploaded byMuhammad Umair
- ITC Lab 1Uploaded byMuhammad Umair
- ITC Lab 1Uploaded byMuhammad Umair
- ITC Lab 4 Sec EUploaded byMuhammad Umair
- PF lab 1Uploaded byMuhammad Umair
- Time Table Spring 2017Uploaded byMuhammad Umair
- ITC Lab 2 Sec EUploaded byMuhammad Umair
- Professional Ethics Case studies.docxUploaded byMuhammad Umair
- Pak Suzuki Management Trainee 2018 (Electrical) All Student MarksUploaded byMuhammad Umair
- Faculty Time Table Spring 2017Uploaded byMuhammad Umair
- Experiment # 1Uploaded byMuhammad Umair
- BeamTool 6 User ManualUploaded byMuhammad Umair
- umme habiba naatUploaded byMuhammad Umair
- SEM-VII-EL NEWUploaded byMuhammad Umair
- 2261_1ed_3prntUploaded byMuhammad Umair
- Faculty Time Table Fall 2016Uploaded byMuhammad Umair
- Faculty Time Table Fall 2016Uploaded byMuhammad Umair
- Sem i III v El NewUploaded byMuhammad Umair
- FYP Proposal (Tank Wall Crawler Robot)Uploaded byMuhammad Umair
- Time Table Fall 2016Uploaded byMuhammad Umair
- lab06Uploaded byMuhammad Umair
- Karachi Board Offices Document Verification ProcedureUploaded byMuhammad Umair
- Financial Analysis of Kay Chemicals and Gulf ChemicalsUploaded byMuhammad Umair
- Lab Viva SolvedUploaded byMuhammad Umair
- 2251 Errata 2ed 2prtUploaded byMuhammad Umair

- Electronics CourseUploaded byMamoon Barbhuyan
- 337835705Uploaded byMartín Figueroa
- System Dynamics An Introduction.pdfUploaded byAnonymous SHTO0aj
- hp 49g+ graphing calculator user's guideUploaded byArturo JR
- Fourier TransformUploaded byAnurag Garg
- Laplace TransformUploaded byaryanbharat007
- Laplace TransformUploaded byMeena Bassem
- Research on Transformer Syspathetic Inrush Current in Initail Period of Power SystemUploaded byFernandoMartínIranzo
- On RAM Finite Hyperbolic TransformsUploaded byInternational Organization of Scientific Research (IOSR)
- Viscoelasticity 05 LaplaceUploaded byalirezakhadir
- Ms Thesis GfsUploaded byDrRitu Malik
- B.tech Mechanical EngineeringUploaded byachyutha_krishna
- icasesyUploaded byRaghavendra R Nitturkar
- B.tech. - R09 - CSE - Academic Regulations SyllabusUploaded byLokesh Reddy
- 10 Transmission LinesUploaded byGoldy Banerjee
- Chag Ce50p Co1 LaplaceUploaded byMark Dones
- b Tech InstrumentationUploaded byMurahari Danam
- Machine Design (2)Uploaded byManoj Kumar
- Guieb Ece131l b7 Analysis Module1Uploaded byIan Guieb
- Matlab CommandsUploaded byHarlz Ranch
- r13_MechUploaded byChagantiRaviteja
- Syllabus Ece 2007-08Uploaded byVenkatesh Desineni
- c6Uploaded byMpaphi Map'z Dambe
- 3.use of laplase transform.pdfUploaded byLeonard Philip
- ReportUploaded bySwapnil
- Detailed SyllabusUploaded bypankajchandre30
- IC Interconnect Analysis - CopyUploaded byRavi Singh
- Lesson6b Fourier TransformUploaded bysusilointhehoy
- Pozrikidis, C the Fractional LaplacianUploaded byRafael Garcia
- mppUploaded byravirajaa07