0 Up votes0 Down votes

70 views3 pageslab 2 matlab

Oct 17, 2011

© Attribution Non-Commercial (BY-NC)

PDF, TXT or read online from Scribd

lab 2 matlab

Attribution Non-Commercial (BY-NC)

70 views

lab 2 matlab

Attribution Non-Commercial (BY-NC)

- The Woman Who Smashed Codes: A True Story of Love, Spies, and the Unlikely Heroine who Outwitted America's Enemies
- Steve Jobs
- NIV, Holy Bible, eBook
- NIV, Holy Bible, eBook, Red Letter Edition
- Hidden Figures Young Readers' Edition
- Cryptonomicon
- Make Your Mind Up: My Guide to Finding Your Own Style, Life, and Motavation!
- The Golden Notebook: A Novel
- Alibaba: The House That Jack Ma Built
- The 10X Rule: The Only Difference Between Success and Failure
- Autonomous: A Novel
- Hit Refresh: The Quest to Rediscover Microsoft's Soul and Imagine a Better Future for Everyone
- Hit Refresh: The Quest to Rediscover Microsoft's Soul and Imagine a Better Future for Everyone
- Life After Google: The Fall of Big Data and the Rise of the Blockchain Economy
- Algorithms to Live By: The Computer Science of Human Decisions
- Console Wars: Sega, Nintendo, and the Battle that Defined a Generation
- The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution

You are on page 1of 3

1. OBJECTIVES At the end of the experiment, students should be able to 1) Perform Laplace and inverse Laplace transforms 2) Simplify complex transfer function 2. INTRODUCTION Symbolic math commands are used in MATLAB M-files right along with your standards MATLAB statements. The only additional requirement is to declare symbolic variable before they are used with the statement syms x1 x2 ., where xi are symbolic variables. Some of the added capabilities that the Symbolic Math Toolbox yields for control systems analysis and design include the following: a. b. c. d. functions and equations can be entered symbolically symbolic expressions can be manipulated algebraically and simplified transfer functions can be typed almost as written Laplace and z-transforms as well as their inverses can be entered and found in symbolic form

The beginning of any symbolic calculation requires defining the symbolic objects. For example, the Laplace transform variable, s, or the time variable, t, must be defined as a symbolic object. This definition is performed using the syms command. Thus, syms s defines s as a symbolic object; syms t defines t as a symbolic object; and syms s t defines both s and t as symbolic objects.

3. PROCEDURES Open the MATLABs icon from the Desktop. Select File > New > M-File. Write down the codes from Exercise#1. Exercise #1

'Ex1 - Inverse Laplace Transform' syms s F = 2/[(s + 1)*(s + 2)^2]; 'F(s)' pretty(F) f = ilaplace(F) 'f(t)' pretty(f) F = 3/[s*(s^2 + 2*s + 5)]; 'F(s)' pretty(F) f = ilaplace(F) 'f(t)' pretty(f) %Display label %Construct symbolic object for %Laplace variable 's' %Define F(s) %Display label %Pretty print F(s) %Find inverse Laplace transform %Display label %Pretty print f(t) %Define F(s) %Display label %Pretty print F(s) %Find inverse Laplace transform %Display label %Pretty print f(t)

Select File > Save As. Save the file as Lab2Ex1. Select Debug > Run to run the program. Repeat above steps for the following exercises and save files appropriately. 1

Exercise #2

'Ex2 - Laplace Transform' syms t %Display label %Construct symbolic object for time %variable 't' 'f(t)' %Display label f = 2*exp(-t) - 2*t*exp(-2*t) - 2*exp(-2*t); %Define f(t) pretty(f) %Pretty print f(t) 'F(s)' %Display label F = laplace(f); %Find Laplace Transfrom pretty(F) %Pretty print F(s) F = simplify(F) %Combine partial fractions pretty(F) %Pretty print F(s) 'f(t)' %Display label f = 3/5 - 3/5*exp(-t)*[cos(2*t) + (1/2)*sin(2*t)]; %Define f(t) pretty(f) %Pretty print f(t) 'F(s)' %Display label F = laplace(f); %Find Laplace Transform pretty(F) %Pretty print F(s) 'F(s), Decimal representation' %Display label F = vpa(F,3); %Convert symbolic numerical %fractions to 3-place decimal pretty(F) %Pretty print F(s) 'F(s), Simplified' %Display label F = simplify(F); %Comine partial fraction pretty(F) %Pretty print F(s)

Exercise #3

'Ex3 Simplified complicated transfer function syms s %Construct symbolic object for %frequency variable 's' G = 54*(s + 27)*(s^3 + 52*s^2+37*s +73) / (s*(s^4 + 872*s^3 + 437*s^2 + 89*s + 65)*(s^2 + 79*s +36)); %Define G(s) 'Symbolic G(s)' %Display label pretty(G) %Pretty print G(s) [num,den] = numden(G); %Extract symbolic numerator and %denominator num = sym2poly(num); %Form vector for numerator of G(s) den = sym2poly(den); %Form vector for denominator of G(s) 'LTI G(s) in Polynomial Form' %Display label Gtf = tf(num,den) %Form and display G(s) in polynomial %form 'LTI G(s) in Factored Form' %Display label Gzpk = zpk(Gtf) %Convert G(s) to factored form.

4. DISCUSSION

(CO3)

1. Find the Laplace transform of the following time function: 5 10 3t 40 3t f (t ) 5e 2t te e 9 3 9 2. Find the inverse Laplace transform of the following frequency function: s 3 4s 2 6s 5 G( s) ( s 8)(s 2 8s 3)(s 2 5s 7)

3. Use MATLAB and the symbolic Math Toolbox to input and form LTI objects in polynomial and factored form for the following frequency function: ( s 3 4s 2 6s 5)(s 3) G( s) ( s 8)(s 2 8s 3)(s 2 5s 7)

5. CONCLUSION List out what you have learned from this experiment. 6. REFERENCE [1] [2] [3] [4] Nise, Norman S., Control Systems Engineering, 4rd editions, John Wiley, 2000. ISBN: 0471366013 Dorf, R.C. & Bishop, R.H. Modern Control Systems, Addison Wesley (1995) (7th. Edn,) ISBN: 0201845598 Using Simulink Version 6 Using MATLAB Version 6

- eureka mathtips for parentsgrade 5 module 3Uploaded byapi-327422647
- Pedagogy Mcqs or Mcqs on EducationUploaded byqadeerahmedkandhro
- FALLSEM2019-20_MAT2002_ELA_VL2019201000462_Reference_Material_I_10-Sep-2019_EXP_3B_(1)Uploaded byaashi kapoor
- AssignmentUploaded byck
- week two group learning progressionUploaded byapi-432465054
- Integration Practice ProblemsUploaded byduelingdog
- Process Control Chp 6Uploaded bysajni123
- MIT6_003F11_lec06.pdfUploaded byIlhariri Muhammad Irlis
- adding and subtracting fractionsUploaded byapi-239447355
- unit 2Uploaded byAfsana Mohammad
- fractionsUploaded byKhusham
- 175172 Chapter 1 NotesUploaded byThenes Kumar
- edm study link 4 8 family letterUploaded byapi-257133080
- MS Worksheet Probability, logics & sets.docxUploaded byMahin Bin Owais
- Handout SASUploaded byJeswin Eldho
- Fundamentals of Math # 1Uploaded byBrian Cbtngn
- Subtracting Simple FractionsUploaded bygeziel de gracia
- standard 6 2 6 3Uploaded byapi-325639266
- MELLINUploaded bykarlkarl100
- copyofmathematicswrite-uptemplateUploaded byapi-239808799
- Peer Coaching Day 3 - Confratute 2015Uploaded byLiz Fogarty
- assessment project-completeUploaded byapi-220065957
- technology newsletterUploaded byapi-447003437
- 11 Mathematics Exemplar Ch13 1Uploaded byHarsh Agarwal
- Addition of Similar Rational Algebraic ExpressionsUploaded byReinabelle Marfil Marquez
- Year 4Uploaded bymrvaughan
- EverythingMaths_Grade11.pdfUploaded byBou Ke Phan
- noda2007Uploaded byvims1248993
- Yearly Lesson Plan Mathematics Form1 2008[1]Uploaded byShasha Wini
- Z transform propertiesUploaded bydebnathsuman49

- Dynamic Deformation in Mre Driven by Magnetic Field , Gy Zhou, 2003Uploaded byMohd Fazli
- lect week 2 (sem 2 2011..2012)Uploaded byMohd Fazli
- Pen Gen Alan Kepada Sistem Instrumentasi Latest (Sem 2 2011.2012)Uploaded byMohd Fazli
- Lab 3Uploaded byMohd Fazli
- Rise TimeUploaded byMohd Fazli
- Step Response of a First and Second Order SystemUploaded byMohd Fazli
- Time Response Control SystemUploaded byMohd Fazli
- Block Diagram ManipulationUploaded byMohd Fazli
- Lab 1Uploaded byMohd Fazli
- Mathematical ModellingUploaded byMohd Fazli
- Lab 3 Sheet Refrigeration Unit - 25 Sep 11Uploaded byMohd Fazli
- Lab 3 Sheet Air Compressor Unit - 25 Sep 11Uploaded byMohd Fazli
- Lab 3 Sheet Shearing Force-21Sep11Uploaded byMohd Fazli
- Lab 3 Sheet Buckling-21Sep11Uploaded byMohd Fazli
- Lab 3 Sheet Bending-21Sep11Uploaded byMohd Fazli
- Lab III v Notch CoverUploaded byMohd Fazli
- Lab Sheet for v-notch 21 Sept 2011Uploaded byMohd Fazli
- Lab III Pelton Wheel CoverUploaded byMohd Fazli
- LAB SHEET for Pelton Wheel 21 Sept 2011Uploaded byMohd Fazli
- LAB SHEET for Centrifugal Pump (I)Uploaded byMohd Fazli
- Lab III Centrifugal Pump (I) CoverUploaded byMohd Fazli
- Notes on OscilloscopesUploaded byMohd Fazli
- BK Function Generator and AWG GuidebookUploaded byMohd Fazli
- DC Motor TheoryUploaded byMohd Fazli
- DC Motor LabUploaded byMohd Fazli
- Lab Plcomron Pcl1Uploaded byMohd Fazli

- antea palladio tutorialUploaded bymatt8724
- MSC ADAMS_Student GuideUploaded byaychiluhimhailu
- Civil 05Uploaded byshubham agarwal
- Energy and exergy thermodynamic analysis of a two-stage compression refrigeration system integrated with an absorption system (NH3+H2O).Uploaded bySafaa Hameed Al Nasery
- Epack Report MANIUploaded byRavi Kumar
- MANZANA Case Solution (105,109,114,115)Uploaded byPranjal Saiwal
- Bolt 18f2550 System Hardware ManualUploaded byw4w4n_s3mk4n1s4
- man dieselUploaded byErman Indragiri
- Filled Links_FA17 (Ms. Summera & Mujeeb )Uploaded byM Modood Abbasi Abbasi
- memory organisationUploaded byGautam Manaktala
- Octave Manual PDF 2011Uploaded byCliff
- Sop Jcem 2013Uploaded byLeonard Mendonça
- RACF2 ichza2c0Uploaded bySiranjeevi Mohanaraja
- 3.4 - Booklet of British and American Literature CompleteUploaded byElena Mihaila
- DE0 User ManualUploaded byYovani Rendon
- final evaluationUploaded byapi-300673962
- Jurnal : Analisis Fungsi Tokoh Vladimir Propp terhadap tokoh Kitsune pada Cerita Rakyat JepangUploaded byFarihatulLayli
- Wi-Fi_Offload_HOW_v2-03-13_5.pdfUploaded byJTO CMRF
- body fluidsUploaded byAris Resurreccion
- Key Responsibilities - Head Coach SquadUploaded byJames Devlin
- 6-1 Steam Systems P SI CEMFastTrack 03 26 12Uploaded byedgardiaz5519
- The Beginner's Guide to Deliberate Practice _ James ClearUploaded by55blue55
- OpenNMS 1.8.2 Quickstart Guide en USUploaded byDamian Damon
- Spa Project ReportUploaded byrest-at-spa
- Concept of StrategyUploaded byvikasmishraelex
- algebra 1-spring2017Uploaded byapi-351497794
- Isucceed Sample Question Paper 20 Chemistry 12Uploaded byGajanan
- Hansen’s Disease (Leprosy) Current and FutureUploaded byBenor Amri Mustaqim
- Gifted and Talented Education Professional Development Package for Teachers Module 1Uploaded bymarco24meduranda
- What Are the Advantages of Jolly Phonics to ChildrenUploaded byAshish Bhatt

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.