MATLABµ{¦¡³]­p¡G¤Jªù½g

Roger Jang (±i´¼¬P)


±z¬O¨Ó¦Û 18.116.23.59 ªº¶Q»«¡A±z¤wÂI¾\¥»¯¸ºô­¶ 1 ¦¸¡C (±q 2015/8/24 ¦Ü¤µªºÂI¾\¦¸¼Æ¡G390332)
Table of Contents

Chapter 1: MATLAB ¤p¶Ç»P¥~Æ[

¥»³¹¤¶²Ð MATLAB »P MathWorks ¤½¥qªº­I´º»P¾ú¥v¡A¨Ã»¡©ú MATLAB ²Ä¤Kª©ªº¥~Æ[¡C
[Video][Slides]
1-1¡GMATLAB ¤p¶Ç
1-2¡GMATLAB ²Ä¤Kª©¥~Æ[
Chapter 1: Exercises

Chapter 2: ªì±´MATLAB

¥»³¹¤¶²Ð MATLAB ªº°ò¥»Àô¹Ò»P¾Þ§@¡A¦pªG±z¬O MATLAB ªºªì¾ÇªÌ¡A«Øij±z¥ý¼ô±x¥»³¹¦U¸`ªº¤º®e¡A¥iÅý±z«Ü§Ö¦a¶i¤J±¡ªp¡A¥ß§Y¨É¥Î MATLAB ªºÂ²¼ä»P¤è«K¡C·íµM¡A¦pªG±z¬OMATLAB ¦Ñ¤â¡A´N¥i¥Hª½±µ¸õ¨ì«á­±¦U³¹¸`¡A¬ãŪ¦U­Ó¬ÛÃö¥DÃD¡C
[Video][Slides][Examples]
2-1¡G¨Ï¥ÎÅܼƻP°ò¥»¹Bºâ
2-2¡G¦V¶q»P¯x°}ªº³B²z
2-3¡G±`¥Î¼Æ¾Ç¨ç¼Æ
2-4¡Gµ{¦¡¬yµ{±±¨î
2-5¡GM ÀÉ®×
2-6¡G·j´M¸ô®|
2-7¡G¤u§@ªÅ¶¡»PÅܼƪºÀx¦s¤Î¸ü¤J
Chapter 2: Exercises

Chapter 3: ¤Gºû¥­­±Ã¸¹Ï

MATLAB ¤£¦ý¾Õªø¯x°}¬ÛÃöªº¦UºØ¼Æ­È¹Bºâ¡A¤]¨ã¦³«D±`±j¤jªºÃ¸¹Ï¥\¯à¡A¯S§O¾A¥Î©ó¦UºØ¬ì¾Ç¥Øµøªí¥Üªk¡]Scientific Visualization¡^¡C¥»³¹±N¤¶²Ð MATLAB ªº°ò¥»¤Gºû¡]¥­­±¡^ø¹Ï¥\¯à¡A¨ä¥L§ó°ª¶¥ªºÃ¸¹Ï¥\¯à¡A±N¦b«áÄò³¹¸`³v¤@¤¶²Ð¡C
[Video][Slides][Examples]
3-1¡G°ò¥»ªº¤Gºûø¹Ï«ü¥O
3-2¡G¦±½uªº±±¨î
3-3¡G¹Ï¶bªº±±¨î
3-4¡G»¡©ú¤å¦rªº¥[¤J
3-5¡G¨ä¥L¥­­±Ã¸¹Ï«ü¥O
Chapter 3: Exercises

Chapter 4: ¤Tºû¥ßÅéø¹Ï

¦b¬ì¾Ç¥Øµøªí¥Üªk¡]Scientific Visualization¡^¤¤¡AÁôÂæb¸ê®Æ¤ºªº¸ê°T¬O­n¾a¹Ï§Îªº§Þ¥©¨Ó§e²{¡A¨ä¤¤¤T«×ªÅ¶¡ªº¥ßÅéø¹Ï¬O¤@­Ó«D±`°ò¥»¥B­«­nªº§Þ¥©¡C¥»³¹±N¤¶²Ð MATLAB ¦b¤T«×ªÅ¶¡ªº¦U¶µ¥ßÅéø¹Ï«ü¥O¡C
[Video][Slides][Examples]
4-1¡G°ò¥»ªº¤Tºûø¹Ï«ü¥O
4-2¡G¹Ï§Î»P¹Ï¶bªº±±¨î
4-3¡G¦±­±ÃC¦âªº±±¨î
Chapter 4: Exercises

Chapter 5: ¯S®í¹Ï§Î

¥»³¹¤¶²Ð MATLAB ¾Õªøªº´XºØ¯S®í¹Ï§Î«ü¥O¡A³o¨Ç«ü¥O¤j³¡¥÷¥i¥Î©ó¤Gºû¤Î¤TºûªºÃ¸¹Ï¡A¯S§O¾A¥Î©ó¸ê®Æ¥Øµøªí¥Üªk¡]Data Visualization¡^ªº§e²{¡C
[Video][Slides][Examples]
5-1¡Gªø±ø¹Ï
5-2¡G­±¿n¹Ï
5-3¡G®°§Î¹Ï
5-4¡G°wÀY¹Ï
5-5¡G¶¥±è¹Ï
5-6¡G¹ê¤ß¹Ï
5-7¡G¦V¶q³õ¹Ï
5-8¡Gµ¥°ª½u¹Ï
5-9¡G®e¿n¥Øµø¹Ï
Chapter 5: Exercises

Chapter 6: °Êµe»s§@

¦b«e´X³¹¤¤¡A§Ú­Ì¤¶²Ð¤F¤Gºû¡B¤Tºû¤Î¯S®í¹Ï§Î¡A¦ý³o¨Ç¹Ï§Î³£¬OÀRºAªº¡AµLªkÅã¥Ü°ÊºA®ÄªG¡C¥»³¹¤¶²Ðªº°Êµe¡]Animation¡^¡A±N¥iÅã¥Ü¹Ï§ÎÀH®É¶¡¦ÓÅܤƪº®ÄªG¡C
[Video][Slides][Examples]
6-1¡GMATLAB °Êµe²¤¶
6-2¡G¥H¹q¼v¤è¦¡²£¥Í°Êµe
6-3¡G¥Hª«¥ó¤è¦¡²£¥Í°Êµe
Chapter 6: Exercises

Chapter 7: ´¤§â¦¡¹Ï§Î»PGUI³]­p

¥»³¹¤¶²Ð MATLAB ªº´¤§â¦¡¹Ï§Î¡]Handle Graphics¡^¡A¥H¤Î¬ÛÃöªº¹Ï§Î¨Ï¥ÎªÌ¤¶­±¡]GUI¡AGraphic User Interface¡^³]­p¡Cµ½¥Î´¤§â¦¡¹Ï§Î¥H¤Î GUI ³]­p§Þ¥©¡A±z´N¥i¥HÀH¤ß©Ò±ý¦a§ó§ï MATLAB ²£¥Íªº¹Ï§Î¡A¨Ã¯à¶i¤@¨B³]­p¥X©Mµ½¡]Friendly¡^¡Bª½Ä±¡]Intuitive¡^ªº¹Ï§Î¨Ï¥ÎªÌ¤¶­±¡C¥»³¹ªº GUI ³]­p§¡¥H°ò¥»ªº MATLAB µ{¦¡³]­p¬°¥D¡A¥t¤@­Ó¥H·Æ¹«¬°¥Dªº GUI §Ö³tµo®iÀô¹Ò¡AºÙ¬° GUIDE¡]Graphic User Interface Design Environment¡^¡A±N¦b¤U¤@³¹¤¶²Ð¡C
[Video][Slides][Examples]
7-1¡G´¤§â¦¡¹Ï§Î²¤¶
7-2¡G¥H GUI ¶i¦æ¹Ï§Îª«¥óªº©Ê½è¦s¨ú
7-3¡G¥H©R¥O¦C¶i¦æ¹Ï§Îª«¥óªº©Ê½è¦s¨ú
7-4¡G¥H M Àɮ׶i¦æ¹Ï§Îª«¥óªº©Ê½è¦s¨ú
7-5¡G¥H M Àɮ׳]©w·Æ¹«¨Æ¥óªºªº¤ÏÀ³
Chapter 7: Exercises

Chapter 8: GUIDE¡GGUI ³]­pÀô¹Ò

¥»³¹¤¶²Ð GUIDE¡]Graphic User Interface Design Environment¡^¡A³o¬O¤@­Ó±M¥Î©ó GUI¡]Graphic User Interface¡A¹Ï§Î¨Ï¥ÎªÌ¤¶­±¡^µ{¦¡³]­pªº§Ö³tµo®iÀô¹Ò¡A¨Ï±z¥i¥H¨Ï¥Î·Æ¹«´N¥i¥H¨³³t¦a²£¥Í¦UºØ UI¡]User Interface¡A¨Ï¥ÎªÌ¤¶­±¡^±±¨îª«¥ó¡A¨ÃÀH¤ß©Ò±ý¦a§ïÅÜ¥L­Ìªº¥~«¬¡B¤j¤p¤ÎÃC¦âµ¥¡A¨Ã¥B«ü©w¨C­Óª«¥ó³QÂI¿ï«á©Ò°õ¦æªº©R¥O¡C
[Slides][Examples]
8-1¡GGUIDE ²¤¶
8-2¡GGUIDE ¤Jªù½d¨Ò¤@
8-3¡GGUIDE ¤Jªù½d¨Ò¤G
8-4¡GGUIDE ¤Jªù½d¨Ò¤T
8-5¡GGUIDE ¤Jªù½d¨Ò¥|
8-6¡GGUIDE ¨ä¥¦»¡©ú
Chapter 8: Exercises

Chapter 9: ¯x°}ªº³B²z»P¹Bºâ

MATLAB ¬O­^¤å¦r MATrix LABoratory¡]¯x°}¹êÅç«Ç¡^ªºÁY¼g¡A¥i¨£ MATLAB »P¯x°}ªºÃö«Y«D±`±K¤Á¡C¦b¥»³¹¦U¸`¤¤¡A±N·|¹ï¯x°}ªº¨ú¥Î¡B°ò¥»¹Bºâ¡A¥H¤Î¦UºØ¯S®í¥Î³~ªº¯x°}¡A¶i¦æ¸Ô²Óªº¤¶²Ð¡CMATLAB ³B²z°ò¥»¯x°}ªº¬ÛÃö«ü¥O¤j³¡¤À³£©ñ¦b¡u{MATLAB ®Ú¥Ø¿ý}/toolbox/matlab/elmat¡v¡A¨ä¤¤ªº¡u elmat¡v´N¬O¥Nªí¡uElementary Matrices¡v¡C­Y­n¬d¸ß»P°ò¥»¯x°}¹Bºâ¬ÛÃöªº«ü¥O¡A¥i¦b MATLAB ¤U¿é¤J¡uhelp elmat¡v¡C
[Video][Slides][Examples]
9-1¡G¯x°}ªº¯Á¤Þ
9-2¡G¨ã¯S®í¥Î³~ªº¯x°}
9-3¡G¯x°}ªº¼Æ¾Ç¹Bºâ
9-4¡G¯x°}ªº¤º³¡¸ê®Æ«¬ºA
Chapter 9: Exercises

Chapter 10: ¦r¤¸»P¦r¦ê

¥»³¹¤¶²Ð MATLAB ¥Î©ó³B²z¦r¤¸¡]Characters¡^»P¦r¦ê¡]Strings¡^ªº«ü¥O¤Î¬ÛÃö¸ê®Æ«¬ºA¡CMATLAB ³B²z¦r¦êªº¬ÛÃö«ü¥O¤j³¡¤À³£©ñ¦b¡u{MATLAB ®Ú¥Ø¿ý}/toolbox/matlab/strfun¡v¤§¤¤¡C¨ä¤¤ªº¡ustrfun¡v´N¬O¥Nªí¡uString Functions¡v¡C­Y­n¬d¸ß»P¦r¤¸©M¦r¦ê¬ÛÃöªº«ü¥O¡A¥i¦b MATLAB ¤U¿é¤J¡G¡uhelp strfun¡v©Î¬O¡uhelp strings¡v¡C
[Video][Slides][Examples]
10-1¡G°ò¥»·§©À
10-2¡G¨Ï¥Î¤@­ÓÅܼƨÓÀx¦s¦h­Ó¦r¦ê
10-3¡G¦r¦êªº¤ñ¸û¡B´M§ä¡B¥N´«¡B¤À¸Ñ»Pµ²¦X
10-4¡G¦r¦ê¡B¼Æ­È»P°}¦CªºÂà´«
10-5¡G«ü¥O·J¾ã
Chapter 10: Exercises

Chapter 11: ¦hºû°}¦C

MATLAB ²Ä¥|ª©¥u¤ä´©¤@ºû°}¦C¡]§Y¦V¶q¡^¤Î¤Gºû°}¦C¡]§Y¯x°}¡^¡A¦ý¦Û±q MATLAB ²Ä¤­ª©¤§«á¡A¶}©l¤ä´©¼ÆºØ·sªº¸ê®Æ«¬ºA¡A¥]§t¦hºû°}¦C¡B²§½è°}¦C¡B¤Îµ²ºc°}¦C¡C¥»³¹¤ÎÀH«á¼Æ³¹±N¤@¤@¤¶²Ð³o¨Ç·sªº¸ê®Æ«¬ºA¡Cµ½¥Î³o¨Ç¸ê®Æ«¬ºA¡A±zªº MATLAB µ{¦¡±N·|Åܦ¨¦Ê¦Ì¿ï¤âªºµu¿Ç ¡X ¤Sµu¤S§Ö³á¡I
[Video][Slides][Examples]
11-1¡G¦hºû°}¦Cªº¯Á¤Þ
11-2¡G¦hºû°}¦Cªº«Ø¥ß
11-3¡G¦hºû°}¦Cªº³B²z
Chapter 11: Exercises

Chapter 12: ²§½è°}¦C

²§½è°}¦C¡]Cell Arrays¡^©µ¦ù¤@¯ë°}¦Cªº¥\¯à¡A¥i¥H±N¤£¦Pªº¸ê®Æ«¬ºAÀx¦s©ó¦P¤@­Ó°}¦C¤§¤¤¡C¥»³¹±N³v¤@¤¶²Ð¦p¦ó«Ø¥ß¡BÅã¥Ü¡B¤Î¨ú¥Î²§½è°}¦C¡C
[Video][Slides][Examples]
12-1¡G²§½è°}¦Cªº«Ø¥ß
12-2¡G²§½è°}¦CªºÅã¥Ü
12-3¡G²§½è°}¦Cªº¦s¨ú
12-4¡G¨ä¥L¬ÛÃö«ü¥O
12-5¡G«ü¥O·J¾ã
Chapter 12: Exercises

Chapter 13: µ²ºc°}¦C

MATLAB µ²ºc°}¦C¡]Structure Arrays¡^ªº©µ®i©Ê¬Û·íÂ×´I¡A¯S§O¾A¥Î©ó¥Ñ¸ê®Æ®w¶Ç¦^ªº¸ê®Æ¡A¥i¨Ï±zªºµ{¦¡§ó¥[ºë²»P¨Ã©ö©óºûÅ@¡C
[Video][Slides][Examples]
13-1¡Gµ²ºc°}¦Cªº«Ø¥ß
13-2¡G¨ú¥Î¤Î§ïÅܵ²ºc°}¦Cªº¸ê®Æ
13-3¡G¨ú¥Î¤Î§ïÅܵ²ºc°}¦CªºÄæ¦ì
13-4¡G¨ä¥L¬ÛÃö«ü¥O
Chapter 13: Exercises

Chapter 14: MATLAB ªº¹Bºâ¤¸

MATLAB ªº¹Bºâ¤¸¡]Operators¡^¤À¬°¤­¤jÃþ¡G¼Æ¾Ç¹Bºâ¤¸¡BÃö«Y¹Bºâ¤¸¡BÅÞ¿è¹Bºâ¤¸¡B¦ì¤¸¹Bºâ¤¸¡B¤Î¶°¦X¹Bºâ¤¸¡A¦Ó»P³o¨Ç¹Bºâ¤¸¬ÛÃöªº«ü¥O§¡¦ì©ó¡u{MATLAB ®Ú¥Ø¿ý}/toolbox/matlab/ops¡v¥Ø¿ý¤º¡C
[Slides][Examples]
14-1¡G¼Æ¾Ç¹Bºâ¤¸
14-2¡GÃö«Y¹Bºâ¤¸
14-3¡GÅÞ¿è¹Bºâ¤¸
14-4¡G¦ì¤¸¹Bºâ¤¸
14-5¡G¶°¦X¹Bºâ¤¸
Chapter 14: Exercises

Chapter 15: MÀÉ®×

¥H MATLAB µ{¦¡½X©Ò¼¶¼gªºÀɮ׳q±`¥H¡um¡v¬°°ÆÀɦW¡A©Ò¥H³o¨ÇÀɮפSºÙ¬°¡uMÀɮסv¡]M-files¡^¡CM ÀɮפS¤À¨âÃþ¡G©³½Z¡]Scripts¡^»P¨ç¦¡¡]Functions¡^¡A¥»³¹±N¸Ô²Ó¤¶²Ð³o¨âÃþMÀɮתº¥\¯à©M¯S¦â¡C
[Slides][Examples]
15-1¡G©³½Z
15-2¡G¨ç¦¡
15-3¡G¦¸¨ç¦¡»P¨p¦³¥Ø¿ý
15-4¡G°Ï°ìÅܼƻP¥þ°ìÅܼÆ
15-5¡Gµ{¦¡½X«OÅ@¡Gp-code
Chapter 15: Exercises

Chapter 16: µ{¦¡¬yµ{±±¨î

MATLAB³Ì±j¤jªº¥\¯à´N¦b©ó¼Æ­È¹Bºâ©M¬ì¾Ç¥Øµøªk§e²{¡A¦ý¥¦¥»¨­¤]¬O¤@­Ó§¹¾ãªºµ{¦¡»y¨¥¡C¥»³¹±N¤¶²Ð¦UºØ MATLAB ´£¨Ñªºµ{¦¡¬yµ{±±¨î»yªk¡A¨Ò¦p°j°é«ü¥O¤Î±ø¥ó«ü¥Oµ¥µ¥¡C
[Video][Slides][Examples]
16-1¡G°j°é«ü¥O
16-2¡G±ø¥ó«ü¥O
Chapter 16: Exercises

Chapter 17: µ{¦¡°£¿ù

¤@­ÓÀu¨qªºµ{¦¡³]­p­û¡A¥²»Ý¯àµ½¥Îµ{¦¡°£¿ùªº¤u¨ã¡A¨Ã¼ô±xµ{¦¡°£¿ùªº§Þ¥©¡A¤~¯à¨Æ¥b¥\­¿¡C¥»³¹¤¶²Ð MATLAB ±`¥Îªºµ{¦¡°£¿ù§Þ¥©¡A¥H¤Î¬ÛÃöªºµ{¦¡°£¿ù¤u¨ã¡A¥i¥HÅý§Aªº°£¿ù§Þ³N¥­¨B«C¶³¡A¤j¤j´î§Cµ{¦¡¶}µo®É¶¡¡C
[Video][Slides][Examples]
17-1¡GMATLAB°£¿ù¾¹Â²¤¶
17-2¡G¤@¯ë°£¿ù¤èªk
17-3¡G¥H©R¥O¦C¬°¥Dªº°£¿ù
17-4¡G¥H¹Ï§Î¤¶­±¬°¥Dªº°£¿ù
Chapter 17: Exercises

Chapter 18: ÀÉ®×Ū¼g

MATLAB ¤º«Ø³\¦h¦³ÃöÀÉ®×Ū¼gªº¨ç¼Æ¡A¨Ï¥ÎªÌ¥i¥H«Ü¤è«K¦a¹ï¤G¶i¨îÀɮשΠASCII Àɮ׶i¦æÀɮתº¶}±Ò¡BÃö³¬¡BÀx¦sµ¥³B²z¡A¥»³¹±N¤@¤@¤¶²Ð¨ä¨Ï¥Îªº»yªk¡C»PÀÉ®×Ū¼g¬ÛÃöªº¨ç¼Æ³£©ñ¦b¡u{matlab®Ú¥Ø¿ý}/toolbox/matlab/iofun¡v¥Ø¿ý¡AŪªÌ¥i¸g¥Ñ¿é¤J¡uhelp iofun¡v¦Ó±o¨ì§¹¾ãªº¨ç¼Æ¦Cªí¡C
[Video][Slides][Examples]
18-1¡G°ª¶¥ªºÀÉ®×Ū¼g
18-2¡G¶}±Ò¤ÎÃö³¬ÀÉ®×
18-3¡GŪ¨ú ASCII ÀÉ®×
18-4¡G¼g¤J ASCII ÀÉ®×
18-5¡Gºô¸ôÀɮתºÅª¨ú
18-6¡GŪ¨ú¤G¶i¨îÀÉ®×
18-7¡G¼g¤J¤G¶i¨îÀÉ®×
18-8¡G±±¨îÀɮצì¸m«ü¼Ð
18-9¡G«ü¥O·J¾ã
Chapter 18: Exercises

Chapter 19: ¼v¹³Åã¥Ü»PŪ¼g

°£¤F¦UºØø¹Ï¥\¯à¥~¡AMATLAB ¤]¥i¥HÅã¥Ü¼v¹³¡]Images¡^¡A¨Ã¹ï¦UºØ¼v¹³Àɮ׶i¦æŪ¼g¡A¥»³¹­«ÂI§Y¬O¦b¤¶²Ð³o¨Ç¥\¯à¡C¥»³¹¨Ã¤£¤¶²Ð¼v¹³³B²zªº¨ç¼Æ¡A¹ï¼v¹³³B²z¦³¿³½ìªºÅªªÌ¡A¥i¥H°Ñ¦Ò¡uImage Processing Toolbox¡v¡]¼v¹³³B²z¤u¨ã½c¡^ªº¤â¥U¡C
[Video][Slides][Examples]
19-1¡GMATLAB ¼v¹³®æ¦¡
19-2¡G¼v¹³ªºÅã¥Ü»P¦C¦L
19-3¡G8-bit ¼v¹³
19-4¡G¼v¹³ÀɮתºÅª¨ú»P¼g¤J
Chapter 19: Exercises

Chapter 20: ­µ°TŪ¼g¡B¿ý»s»P¼½©ñ

¥»³¹¤¶²Ð MATLAB ¹ï©óÁn­µ°T¸¹¡]Audio Signal¡A²ºÙ¡u­µ°T¡v¡^ªº°ò¥»¾Þ§@¡A¥]§tŪÀÉ¡B¼gÀÉ¡B¿ý­µ»P¼½©ñ¡C
[Video][Slides][Examples]
20-1¡G­µ°Tªº°ò¥»¤¶²Ð
20-2¡G­µÀɪºÅª¨ú
20-3¡G­µ°Tªº¼½©ñ
20-4¡G­µ°Tªº¿ý»s
20-5¡G­µ°Tªº¼gÀÉ
Chapter 20: Exercises