14-1 MATLAB�sĶ��²��

MATLAB½sĶ¾¹¡]MATLAB Compiler¡^¥i¥H±N¨Ï¥ÎªÌ©Ò¼gªºMATLAB¨ç¦¡Âà´«¦¨Cµ{¦¡½X¡]Source Code¡^©Î¦@¨Éµ{¦¡®w¡]Shared Library¡^¡A³o¨ÇCµ{¦¡½X©Îµ{¦¡®w´N¥i¥H³Q¥Î¦b¦UºØ¥~³¡À³¥Îµ{¦¡¤¤¡A¨Ï³o¨Ç¥~³¡À³¥Îµ{¦¡¨ã¦³MATLABªº§¹¾ã¥\¯à¡A¥]§t

§ó­«­nªº¬O¡A§A¥i¥H±N³o¨Ç¥~³¡À³¥Îµ{¦¡ªº°õ¦æÀɵ¹¤©¥L¤H¨Ï¥Î¡A¦Ó¹ï¤èªº°õ¦æ¥­¥x¨Ã¤£»Ý­n¦w¸ËMATLAB¡C¦]¦¹¡A¥u­n¨Ï¥ÎMATLAB½sĶ¾¹¡A§Ú­Ì´N¥i¥H±N¦UºØMATLABµ{¦¡½X¤Î¬ÛÃö¥\¯à¡A¤º´O¨ì¦UºØ¥~³¡À³¥Îµ{¦¡¡A¥H«K©ó§Q¥Î©Î®i¥ÜMATLABªº¦U¶µ¥\¯à¡C

§ó¸Ô²Ó¦a»¡¡AMATLAB½sĶ¾¹¨ã¦³¤U¦C¥\¯à¡G

¦b¬ãŪ¥»³¹¤§«e¡AŪªÌ¥²¶·¥ýÁA¸Ñ¥»®Ñ²Ä¤T³¹¡uÀ³¥Îµ{¦¡¤¶­±¡vªº¤º®e¡A¤~¯à°÷²`¤JÁA¸ÑMATLAB½sĶ¾¹ªº¥\¯à¡C¥t¡A¥Ñ©ó½g´T¦³­­¡A¥»³¹¹ï©óMATLAB½sĶ¾¹ªº½d¨Ò©M»¡©ú¡A¦³¤U¦C´X¶µ­ì«h¡G

¦b¶i¤J½d¨Ò»¡©ú«e¡A§Ú­Ì¥²¶·¥ý³]©w¹q¸£¤WªºC½sĶ¾¹¡A¥H«K¥Î©óMATLAB½sĶ¾¹¡A¤èªk¦p¤U­z¡C

­º¥ý¡A§Ú­Ì¦bMATLAB©R¥Oµøµ¡¤U¿é¤J¡umbuild -setup¡v¡A¨t²Î¦^À³¦p¤U¡G

Welcome to mbuild -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011a/win64.html Please choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n?

¿é¤J¡uy¡v¤§«á¡A«ö¤U Enter¡A¦¹®É¨t²Î¦^À³¦p¤U¡G

Select a compiler: [1] Microsoft Visual C++ 2010 in c:\Program Files (x86)\Microsoft Visual Studio 10.0 [2] Microsoft Visual C++ 2008 SP1 in c:\Program Files (x86)\Microsoft Visual Studio 9.0 [0] None Compiler:

³o¨ÇC½sĶ¾¹¬OMATLAB¦b§Aªº¹q¸£¦Û°Ê°»´ú¥X¨Óªºµ²ªG¡]©Ò¥H¦b¤£¦Pªº¹q¸£·|±o¨ì¤£¦Pªºµ²ªG¡^¡A¦b¥»³¹ªº»¡©ú¡A§Ú­Ì±N¥HC/C++ 10.0¬°¥D¡A©Ò¥H§Ú­Ì¿é¤J¡u1¡v¡A¨Ã«ö¤U Enter¡A¦¹®É¨t²ÎÁÙ·|­n¨D§A½T»{¡A¥u­n§A¦A«ö¤U¡uy¡v¤Î Enter¡A´N§¹¦¨¤FC½sĶ¾¹ªº³]©w¡C

Hint
­Y¦b¤W­z¹Lµ{¤¤¡A¥X²{¿ù»~°T®§¡A§A¥i¥H¥ý¶i¦æ¡umex -setup¡v¡A¦A¶i¦æ¡umbuild -setup¡v¡A¥i¯à´N¥i¥H¸Ñ¨M§Aªº°ÝÃD¡C

¥H¤U¨â¤p¸`±N»¡©ú¦p¦ó¥H©R¥O¦Cªº¤è¦¡¡A¨Ó±NMATLAB¨ç¦¡Âন¥i°õ¦æÀÉ¥H¤Î¦@¨Éµ{¦¡®w¡C¨Æ¹ê¤W¡A§Ú­Ì¤]¥i¥H¨Ï¥Î¹Ï§Î¨Ï¥ÎªÌ¤¶­±ªº¤è¦¡¨Ó¹F¨ì¦P¼Ë¥\¯à¡A¬ÛÃöªºMATLAB«ü¥O¬O¡udeploytool¡v¡A¦ý³o¤è­±ªº²Ó¸`¸û¦h¡A¬°¸`¬Ù½g´T¡A¤£¦b¦¹¸Ô­z¡A¬ÛÃö¸ê°T¥i¥H°Ñ¦ÒÜg«ä¬ì§Þ´£¨ÑªºPDFÀɮס]¦ì©ó¥»®Ñ½d¨Ò¥úºÐªº¥»³¹½d¨Ò¥Ø¿ý¤¤¡^¡C


MATLABµ{¦¡³]­p¡G¶i¶¥½g