exp_1_intro of matlab 1

Upload: qi

Post on 09-Mar-2016

214 views

Category:

Documents


0 download

DESCRIPTION

control system

TRANSCRIPT

LAB MANUAL TEL0194 CONTROL SYSTEMEXPERIMENT 1INTRODUCTION TO MATLABOBJECTIVES1.Introduce students the application of MATLAB software in control system2.Familiarize students with the terminology of a MATLAB software.

PROCEDURE1.Start MATLAB by double-clicking the MATLAB shortcut icon on your window desktop.2.You can enter matrices in MATLAB. You can type in the Command WindowA = [16 3 2 13; 5 10 11 8; 9 6 7 12; 4 15 14 1] MATLAB displays the matrix you just entered:

A =16321351011896712415141

3.Type sum(A). What is the output after you entered?4.Type A. Write the answer.5.Try the exercises below:a.Sum(A)b.diag(A)c.sum(diag(A))d.X = AX(4,5) = 17e.1:10f.100:-7:50g.0:pi/4:pih.rho = (1+sqrt(5))/2i.a = abs(3+4i)j.z = sqrt(besselk(4/3,rho-i))K.n = (0:9);Pows = [nn.^22.^n]l.x = (1:0.1:2);logs = [x log10(x)]

6.Save your work as Lab 1.m7.To end your MATLAB session, select File>Exit MATLAB in the desktop, or type quit in the command window.