1 / 21

Matlab Teaching

Matlab Teaching. Chia -Chi Chan ( 詹佳琦 ) Visual Communications Laboratory Department of Communications Engineering National Central University. Matlab 介面. 矩陣存取的地方. workspace. Command window. 下指令的地方. 之前的記錄. Command history. Outline. 數學運算 畫圖指令 參考網址. 數學運算. 加總 : sum() 平均值 :mean()

gareth
Download Presentation

Matlab Teaching

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. Matlab Teaching Chia-Chi Chan (詹佳琦) Visual Communications Laboratory Department of Communications Engineering National Central University

  2. Matlab介面 矩陣存取的地方 workspace Command window 下指令的地方 之前的記錄 Command history

  3. Outline • 數學運算 • 畫圖指令 • 參考網址

  4. 數學運算 • 加總:sum() • 平均值:mean() • 排序: sort() EX: A[4]:5,2,1,8 作排序,加總,平均值 排序:1,2,5,8 加總:16 平均值:4

  5. In Matlab 有加分號就不會顯示出每個值 作總和 作平均值 作排序

  6. 其他數學運算 參考網址: http://www.cs.nthu.edu.tw/~jang/mlbook/ch1/

  7. Outline • 數學運算 • 畫圖指令 • 參考網址

  8. 清空檔案 • 使用 clear 指令會將上次紀錄清空 (workspace) Workspace 清空 使用clear指令

  9. 畫數據圖 • If use Excel….

  10. 用 Matlab畫圖 使用plot指令

  11. 如果還要再畫圖… • 使用 hold on指令

  12. Step1 如果想更改圖怎麼辦…. 按下去做圖片的更改

  13. 接著會開啟視窗 顯示兩條線的標籤 可以由此作圖片的更改:x軸的間距,x軸的名稱,曲線的顏色等等…

  14. Step2 將視窗變回原來的大小 按下去就會變回原來的大小

  15. 複製圖片

  16. 貼上的結果

  17. 將數據的每個點標示出來

  18. 開檔案寫指令 開新檔

  19. 執行(RUN)

  20. 更多指令請參考….

  21. 參考網站 • MATLAB 程式設計與應用(網路版)張智星 • http://www.cs.nthu.edu.tw/~jang/mlbook/ • MATLAB程式設計《入門篇》:投影片 • http://neural.cs.nthu.edu.tw/jang/books/matlabProgramming4beginner/cdrom/matlabProgramming4beginner/slide/

More Related