1 / 9

(1) Mastering MATLAB 6: A Comprehensive Tutorial and Reference 全華書局 (2079801)

Reference Books:. (1) Mastering MATLAB 6: A Comprehensive Tutorial and Reference 全華書局 (2079801) (2) MATLAB 6.X 使用入門 余建政 , 俞克維 , 林義隆 , 白能勝 文京書局 C090 $570 (3) MATLAB 程式設計與應用 新文京書局. 作業信箱 : hao @cc.chit.edu.tw. 課程網址 : http://ee2.chit.edu.tw/~hao.

ting
Télécharger la présentation

(1) Mastering MATLAB 6: A Comprehensive Tutorial and Reference 全華書局 (2079801)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Reference Books: (1) Mastering MATLAB 6: A Comprehensive Tutorial and Reference 全華書局(2079801) (2) MATLAB 6.X 使用入門 余建政, 俞克維, 林義隆, 白能勝 文京書局 C090 $570 (3) MATLAB 程式設計與應用 新文京書局 作業信箱: hao @cc.chit.edu.tw 課程網址: http://ee2.chit.edu.tw/~hao

  2. Unit 1 Matlab Window Command 中華技術學院電子系 蔡樸生 副教授 林盈灝 副教授

  3. MIMO System System Model

  4. Consider a differential equation, described as

  5. Command Window • It is very convenient for testing matlab command. • The program can not save is the fatal drawback. [Example 1] Matrix operate >> A=[1 -1 -2;2 -3 -5;-1 3 5]; >> B=[1 2 3;4 5 6;7 8 9]; >> C=A+B ? C=A*B ? inv(A)=[0 1 1;5 -3 -1;-3 2 1]? >> C=A’ ? det (A) ? eig(A) ? Note : command 一定要用小寫 command後不加 ‘;’, 即時顯示運算結果

  6. System Representation (I) • ? ss2tf ? ss2zp ? tf2ss ? tf2zp ? zp2ss ? zp2tf • tf : [nums,dens] ss : [A,B,C,D,1] zp : [z,p,k] [Example 2] Testing system mode command • >>[nums,dens]=ss2tf(A,B,C,D,1); nums = 0 5.0000 15.0000 10.0000 dens = 1.0000 3.0000 2.0000 1.0000

  7. System Representation (II) • >> [z,p,k]=ss2zp(A,B,C,D,1) • z = -1 , -2 • p = -0.3376+0.5623i, -0.3376-0.5623i, -2.3247 • k = 5 [Homework 1] >> z=[0;-5;-6]; i=sqrt(-1); >> p=[-1;-2;-3+4i;-3-4i]; k=1; >> [nums,dens]=zp2tf(z,p,k); >> [A,B,C,D]=zp2ss(z,p,k);

  8. CH25 : Two Dimension Graphics (I) • plot (X,Y,’CLM’) y : yellow - * X , Y : Vector b : blue -- ^ C : color r : read : o L : Line Style k : black -. M : Marker g : green .. • linspace(x1,x2,N) : generate N point between x1 and x2 . Default N=100 [Example 3] Sinewave Generation x=linspace(0,2*pi);

  9. Two Dimension Graphics (II) >> x=linspace(0,2*pi); >> y=sin(x); >> plot(x,y,’b’); • grid; • axis([xmin xmax ymin ymax]); • xlabel(‘time’);ylabel(‘sinewave’); • title(‘ sinewave plot ’); • help command

More Related