You are on page 1of 153

MATLAB & Simulink

Release 2012a
MathWorks

www.mathworks.co.jp Web
comp.soft-sys.matlab Newsgroup
www.mathworks.co.jp/contact_TS.html
support@mathworks.com ()
support@mathworks.com ()
doc@mathworks.co.jp
service@mathworks.co.jp
service@mathworks.co.jp

TEL: 03-6367-6700 ()

FAX: 03-6367-6710

The MathWorks GK
107-0052 415-1

MathWorks Web

COPYRIGHT 19962012 by The MathWorks, Inc.
The software described in this document is furnished under a license agreement. The software may be used or copied
only under the terms of the license agreement. No part of this manual may be photocopied or reproduced in any form
without prior written consent from The MathWorks, Inc.
FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by, for, or
through the federal government of the United States. By accepting delivery of the Program or Documentation,
the government hereby agrees that this software or documentation qualifies as commercial computer software or
commercial computer software documentation as such terms are used or defined in FAR 12.212, DFARS Part 227.72,
and DFARS 252.227-7014. Accordingly, the terms and conditions of this Agreement and only those rights specified in
this Agreement, shall pertain to and govern the use, modification, reproduction, release, performance, display, and
disclosure of the Program and Documentation by the federal government (or other entity acquiring for or through
the federal government) and shall supersede any conflicting contractual terms or conditions. If this License fails to
meet the governments needs or is inconsistent in any respect with federal procurement law, the government agrees
to return the Program and Documentation, unused, to The MathWorks, Inc.

MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks
for a list of additional trademarks. Other product or brand names may be trademarks or registered
trademarks of their respective holders.

MathWorks products are protected by one or more U.S. patents. Please see www.mathworks.com/patents
for more information.

1996 12 1 MATLAB 5.0 (Release 8)
1997 5 2 MATLAB 5.1 (Release 9)
1998 3 3 MATLAB 5.2 (Release 10)
1999 1 4 MATLAB 5.3 (Release 11)
1999 11 5 MATLAB 5.3.1 (Release 11.1)
2000 11 6 MATLAB 6.0 (Release 12)
2001 6 7 MATLAB 6.1 (Release 12.1)
2002 7 8 MATLAB 6.5 (Release 13)
Windows
2004 6 9 MATLAB 7.0 (Release 14)
2004 10 10 MATLAB 7.0.1 (Release 14SP1)
2005 3 11 MATLAB 7.0.4 (Release 14SP2)
2005 9 12 MATLAB 7.1 (Release 14SP3)
2006 3 13 MATLAB 7.2 (Release 2006a)
2006 9 14 MATLAB 7.3 (Release 2006b)
2007 3 MATLAB 7.4 (Release 2007a)
2007 9 MATLAB 7.5 (Release 2007b)
2008 3 MATLAB 7.6 (Release 2008a)
2008 10 MATLAB 7.7 (Release 2008b)
2009 3 MATLAB 7.8 (Release 2009a)
2009 9 MATLAB 7.9 (Release 2009b)
2010 3 MATLAB 7.10 (Release 2010a)
2010 9 MATLAB 7.11 (Release 2010b)

2011 4 MATLAB 7.12 (Release 2011a)
2011 9 MATLAB 7.13 (Release 2010b)
2012 3 MATLAB 7.14 (Release 2012a)


1
. . . . . . . . . . . . . . . . . 1-2

MathWorks . . . . . . . . . . . . . . . . . . . . . . . 1-3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1: . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
3: . . . . . . . . . . . 1-10
4: MathWorks . . . . . . . . . . . . . . 1-11
5: . . . . . . . . . . . . . . 1-15
6: . . . . . . . . . . . . . . . . . . . . . 1-18
7: . . . . . . . . . . . . . . . . 1-19
8: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
9: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23
10: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-25
11: . . . . . . . . . . . . . . . . . . . . . . . . . 1-26

. . . . . . . . . . . . . . . . . . . . . . . . . . . 1-28
1: . . . . . . . 1-28
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-29
3: MathWorks . . . . . . . . . . . . . . 1-31
4: . . . . . . . . . . . . 1-34
5: . . . . . . . . . . . . . . . . 1-36
6: . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-37
7: . . . . . . . . . . . . . . . . . 1-38
8: . . . . . . . . . . . . . . . . . . . . . 1-39

. . . . . . 1-41
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-41
1: . . . . . . . . . . . . . . . . . . . . . . . . . 1-43
2: . . . 1-44

v
3: . . . . . . . . . . . . . . . . . . . . . . 1-45
4: . . . . . . . . . . . . . . 1-45
5: . . . . . . . . . . . . . . . . . . . . . 1-48
6: . . . . . . . . . . . . . . . . 1-49
7: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-50
8: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-51
9: . . . . . . . 1-52
10: . . . . . . . . . . . . . . . . . . . . . . . . . 1-53
11: . . . . . . . . . . . . . . 1-54
12: . . . . . . . . . . . . . . 1-55
13: . . . . . . . . . . . . . . . . . . . . 1-57

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-60
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . 1-60
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . 1-60
MATLAB . . . . . . . . . . . . . . . . . . 1-60

MathWorks () . . . . . . . . . . . . . . . . . . . . . 1-62
Windows . . . . . . . . . . . . . . . . . . . . . . . 1-62
Linux . . . . . . . . . . . . . . . . 1-65
Macintosh . . . . . . . . . . . . 1-65

. . . . . . . . . . . . . . . . . . . . . . . 1-67

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-73


2
...................................... 2-2

. . . . . . . . . . 2-4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
1: . . . . . . . . . . . . . . . . . . . . . . . . . 2-7

vi
2:
.............................................. 2-8
3: . . . . . . . . . . . 2-10
4: MathWorks . . . . . . . . . . . . . . 2-11
5: . . . . . . . . . . . . . . 2-14
6: . . . . . . . . . . . . . . . . . . . 2-15
7: MATLAB . . . . 2-16
8: . . . . . . . . . . . . . . . . . . 2-17
9: . . . . . . . . . . . . . . 2-19
10: . . . . . . . . . . . . . . . 2-20
11: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22
12: . . . . . . . . . . . . . . . . . . . . . . . . . 2-25

. . . . . . . . . . . . . . . . 2-26

MathWorks
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27
1: . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-31
3: . . . . . . . . . . . 2-33
4: MathWorks . . . . . . . . . . . . . . 2-34
5: . . . . . . . . . . . . . . 2-37
6: . . . . . . . . . . . . . . . . . . . 2-39
7: MATLAB . . . . 2-40
8: . . . . . . . . . . . . . . . . . . 2-41
9: . . . . . . . . . . . . . . 2-42
10: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-43
11: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-45
12: . . . . . . . . . . . . . . . . . . . . . . . . . 2-48

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-49
. . . . . . . . . . . . . . . . . . . . . . . . . . 2-49
Linux . . . . . . . . . . . . . . . . . . 2-50
Macintosh
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-52
. . . . . . . . . . . . . . . . . . . . . . . . . . 2-54

( ) . . . . . . . . . . 2-59
. . . . . . . . . . . . . . . 2-59

vii
. . . . . . . . . . . . . . . . . . 2-59

. . . . . . . . . . 2-61


3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
. . . . . . . . . . . . . . . . . . . . . 3-2
. . . . . . . . . . . . . . . . . 3-2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
. . . . . . . 3-6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7

viii
1

MathWorks

(p. 1-2)
MathWorks (p. 1-3)
(p. 1-28)
(p. 1-41)
(p. 1-59)
MathWorks () (p. 1-62)
(p. 1-67)
(p. 1-73)
1


MathWorks
MathWorks

Microsoft Windows (32 64 )


Linux (32 64 )
Mac OS X

MathWorks (p. 1-3)


(p. 1-28)
(p. 1-41)
(p. 1-59)
MathWorks () (p. 1-62)
(p. 1-67)
(p. 1-73)

1-2
MathWorks

MathWorks
...
(p. 1-3)
1: (p. 1-5)
2: (p. 1-7)
3: (p. 1-10)
4: MathWorks (p. 1-11)
5: (p. 1-15)
6: (p. 1-18)
7: (p. 1-19)
8: ( ) (p. 1-20)
9: ( ) (p. 1-23)
10: (p. 1-25)
11: (p. 1-26)

MathWorks



MathWorks
" "



1-3
1

:



MATLAB

- Windows


- Linux MATLAB

matlab


- Macintosh
Macintosh
MathWorks
[Authenticate]

1-4
MathWorks

(p. 1-41)
2

MATLAB

MATLAB

10
9 MATLAB
9

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD
MathWorks Web DVD
DVD
InstallForMacOSX

1-5
1

Linux DVD DVD


/path_to_dvd/install &

1-6
MathWorks

./install

DVD

DVD

mount -o exec /media/cdrom0

2:

[
] []
MathWorks

[
] []

1-7
1

Select this option to install products (recommended).

Select this option if Click Next.


you do not have an
Internet connection.

1-8
MathWorks

: Windows

[]
[]
MathWorks

1-9
1

3:
[]
[]


license.txt

Click Next. Select Yes.

1-10
MathWorks

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks Web

1-11
1

If you have an account, enter your


email address and password.

If you need Click Next. If you have


to create an a File Installation
account, select Key, enter it here.
this option.

MathWorks



MathWorks Web
[]
MathWorks

1-12
MathWorks

Enter your e-mail address. Create a password for your account.

Click Next. Enter Activation Key. Enter first name and last name.

: MathWorks
[]
[]
MathWorks
[]

1-13
1

Follow these instructions.

Click Next.

1-14
MathWorks

5:
MathWorks
[]



MathWorks Web


[Unset]

MathWorks
[ ]
[]

MathWorks

1-15
1

License labels and options


Select a license. descriptions help identify licenses.

Select option Click Next.


and enter
Activation Key.



[
]
[]

1-16
MathWorks

Enter activation key.

Click Next.

1-17
1

6:
[ ] [] []
[]



[]

(
) []

Select Typical or Custom.

Click Next.

1-18
MathWorks

7:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012a.app Applications

[]
[]

Specify name of installation folder.

Click Next.

1-19
1

8: (
)
[]




[]


Click here to select or


clear all product check
boxes. Select the products you want to install.

Click Next.

1-20
MathWorks

MathWorks Web

DVD

[] []
DVD
[]

[ ]

[
]

[]

1-21
1

Choose to install product from DVD Provides information about


or download version from Web. the size of the download.

Select only Click Next. Total download Clear selection


latest version size. of all product
of all products. downloads.

1-22
MathWorks

9: (
)

Windows
Windows [ ] []
MATLAB

[]

Click Next.

Linux
Linux matlab mex

/usr/local/bin

1-23
1

[]

Select this option and specify


the location of symbolic links.

Click Next.

1-24
MathWorks

10:

[]
[]

Click Install.

1-25
1

DVD


MathWorks Web

[]

Click Next.

11:
[]


MathWorks
MathWorks
[]

1-26
MathWorks

[MATLAB
] []

To activate your software, leave this selected.

Click Next to proceed to


activation. If you cleared the
check box, button label
changes to Finish.


(p. 1-28)

1-27
1


...
1: (p. 1-28)
2: (p. 1-29)
3: MathWorks (p. 1-31)
4: (p. 1-34)
5: (p. 1-36)
6: (p. 1-37)
7: (p. 1-38)
8: (p. 1-39)

1:

[] [MATLAB
]
MATLAB
MATLAB [] [] [
]
MATLAB

Windows matlabroot/bin/$ARCH activate_matlab.exe
matlabroot MATLAB
$ARCH matlabroot\bin\win32

Linux Macintosh matlabroot/bin activate_matlab.sh

Macintosh MATLAB
MATLAB

1-28

( Ctrl
) []

2:

"" MathWorks


MathWorks
[
]

Click Next.

MathWorks

1-29
1

[]
MathWorks


If you have an Internet connection,


leave this option selected.

If you do not Click Next. To enter proxy server


have an Internet settings or choose
connection, select other options.
this option.

: Windows

1-30

[]
[]

MathWorks

(p. 3-2)

3: MathWorks

MathWorks []
MathWorks

MathWorks []
[]

[
] []



[]

1-31
1

If you have an account, enter your


e-mail address and password.

If you need to
create an account, Click Next. If you have your License File,
select this option. specify the full path here.

MathWorks



MathWorks
Web []

1-32

Enter e-mail address. Create a password for your account.

Click Next. Enter Activation Enter first and last name.


Key.

: MathWorks
[]
[]
MathWorks
[]

1-33
1

Follow these instructions.

Click Next.

4:

MathWorks
[]

1-34


MathWorks Web


[Unset]

MathWorks
[ ]
[]

License labels and license option


Select a license. descriptions help identify licenses.

Click Next. Enter Activation Key, to identify


a license not shown.

1-35
1

5:


[ ]
[
]

[]

Click option to choose activation type.

Click Next.

1-36

6:

: []





MathWorks

ID
MathWorks


[
] []

[
]
[]
MathWorks

1-37
1

Specify the user name of the


Leave this option selected person who will use the
if you will use the software. software.

Specify information Click Next.


about the person
who will use software.

7:
[]

MathWorks
( [ ]
)

MathWorks
MathWorks

1-38

Verify all your activation data.

Click Activate.

8:
[]

1-39
1

Click Finish.

1-40

...
(p. 1-41)
1: (p. 1-43)
2: (p. 1-44)
3: (p. 1-45)
4: (p. 1-45)
5: (p. 1-48)
6: (p. 1-49)
7: ( ) (p. 1-50)
8: ( ) (p. 1-51)
9: (p. 1-52)
10: (p. 1-53)
11: (p. 1-54)
12: (p. 1-55)
13: (p. 1-57)






MathWorks Web


1-41
1

:



MATLAB

- Windows


- Linux MATLAB

matlab


- Macintosh
Macintosh
MathWorks
[Authenticate]

1-42

MathWorks (p. 1-3)


MathWorks

(p. 2-4)

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD
MathWorks Web DVD
DVD
InstallForMacOSX

Linux DVD DVD


/path_to_dvd/install &

1-43
1

./install

DVD

DVD

mount -o exec /media/cdrom0

2:
[
] []

Select this option if you do not


have an Internet connection.

Click Next.

1-44

3:
[]
[]


license.txt

Click Next. Select Yes.

4:
[
]

[ ]
[]
MathWorks Web

1-45
1

[ ]
[]

Enter File Installation Key here.

Select this option to Click Next.


gather the information
needed to get a File
Installation Key.


[]
MathWorks Web (License Center)

ID
(: R2012a)

1-46

(
)

Perform this procedure to complete activation.

Click Finish.

1 []
Windows Linux []/[Print]

2 MathWorks Web

3
MathWorks

1-47
1

5:
[ ]
[]



[]

(
) []

Select Typical or Custom.

Click Next.

1-48

6:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012a.app Applications

[]
[]

Specify name of installation folder.

Click Next.

1-49
1

7: (
)
[]




[]

Click here to select or


clear all product check
boxes. Select the products you want to install.

Click Next.

1-50

8: (
)

Windows
Windows [ ] []
MATLAB

[]

Click Next.

Linux
Linux matlab mex

/usr/local/bin

1-51
1

[]

Select this option and specify


the location of symbolic links.

Click Next.

9:

[]
[]

1-52

Click Install.

10:
[]

MathWorks
[]

[MATLAB
] [] (
)

1-53
1

To activate your software, leave this selected.

Click Next to proceed to


activation. If you cleared the
check box, button label
changes to Finish.

11:
MathWorks

[
] []

1-54

Select this Click Next.


option to activate
without an
Internet connection.

12:


MathWorks Web
[ ]

[]

[ ]
[]

1-55
1

Specify the full path to


your license file here.

Click this option Click Next.


if you do not have
a license file.



[]

ID
(: R2012a)
(
)

[]

1-56

MathWorks Web
(License Center) MathWorks

[]

:
MATLAB

Note the information


you need for activation.

To save this To exit the


information, activation process,
click Print. click Close.

13:
[]

1-57
1

Click Finish.

1-58

...
MATLAB (p. 1-59)
(p. 1-60)
MATLAB (p. 1-60)
MATLAB (p. 1-60)
MATLAB (p. 1-60)

MATLAB
MATLAB

Windows :
- Windows 7 Windows []
[MATLAB R2012a]
- Windows XP Windows []
[] [MATLAB] [R2012a] [MATLAB R2012a]

- [ ]
MATLAB

- matlabroot/bin matlabroot MATLAB


matlab.exe
Linux
- matlab [
]
matlabroot/bin/matlab
matlabroot MATLAB
Macintosh

1-59
1

- MATLAB


MATLAB MathWorks



MathWorks Web

MATLAB
MATLAB
() My Documents\MATLAB (
9: ( ) (p. 1-23)
)
MATLAB

MATLAB
MATLAB
MATLAB matlabroot\toolbox\local startup.m
MATLAB startup.m
local startupsav.m

MATLAB
MATLAB MATLAB
MATLAB

1-60


MATLAB MATLAB


MATLAB []

MATLAB MATLAB []
HTML

MathWorks Web (www.mathworks.co.jp)
[]
()

1-61
1

MathWorks ()
MathWorks

: 2


(p. 1-67)

Windows
MathWorks ()

1 MATLAB

Windows 7 [] [
] [ ] []
[MATLAB R2012a]
Windows XP [] [
] [ ] []
[MATLAB R2012a] [/]
matlabroot/uninstall/bin/$ARCH matlabroot
MATLAB $ARCH win32

uninstall.exe



(p. 2-61)

3 [] [
]

MATLAB MathWorks

1-62
MathWorks ()

Select or uncheck all Select products you want


products in the list. to uninstall.

Click Uninstall. Click this option to remove


MATLAB preferences.

MathWorks
MATLAB
[OK] []
(p. 3-5)

MATLAB [MATLAB
]
MATLAB
MATLAB
MATLAB prefdir

prefdir
ans =
C:\WINNT\Profiles\username\Application Data\MathWorks\MATLAB\R2012a

1-63
1

username

4 ()
MATLAB

matlabroot/archives
[]

5 []

[] MATLAB


(p. 1-67)

Click Finish.

1-64
MathWorks ()

Linux

(p. 1-67)

1 MATLAB

2
matlabroot/etc lmdown

3 Linux

rm -rf matlabroot

matlabroot MATLAB

Macintosh

: MATLAB

MATLAB

1 Macintosh
MATLAB

2 MATLAB MATLAB
lmdown

1-65
1

3 MATLAB
Applications MATLAB_R2011a.app

4 MATLAB [Finder] [
]

1-66

MathWorks



1

2
MathWorks

MathWorks



MathWorks Web


: 2

MathWorks
() (p. 1-62)

1-67
1

MATLAB [] []

MATLAB matlabroot

Windows :
matlabroot\uninstall\bin\win32\deactivate_matlab.exe
Linux
matlabroot/bin/deactivate_matlab.sh
Macintosh
/Applications/MATLAB_R2012a.app/bin/deactivate_matlab.sh
Windows 7 [] MATLAB

Windows XP [] [
] [MATLAB] [R2012a] [MATLAB R2012a
]

2 []


MATLAB

1-68

Select the license that


you want to deactivate.

Click Deactivate.

[]
[OK]
[MathWorks ]

1-69
1

3 []
MathWorks

4 [OK]

MathWorks
[
] [OK] [MathWorks
]

Click OK.


MathWorks

1-70

[]


MathWorks Web

[OK] [MathWorks
]

Deactivation string.

Click OK.

5 [MathWorks
]

[] [
]

1-71
1

Select another license


to deactivate. Status of license.

Click Close.

1-72

: MathWorks Web (www.mathworks.com)


1-73
1

1-74
2

[] [ ]
MathWorks

Microsoft Windows (32 64 )


Linux (32 64 )
Mac OS X

MathWorks 1

(p. 2-2)
(p. 2-4)
(p. 2-26)
MathWorks
(p. 2-27)
(p. 2-49)
( ) (p. 2-59)
(p. 2-61)
2

-
FLEXnet



FLEXnet


(p. 2-4)
MathWorks -
MathWorks


MathWorks

MathWorks -
MathWorks



MathWorks (p. 2-27)




(
) (p. 2-59)

2-2

:

MathWorks Web

2-3
2


...
(p. 2-4)
1: (p. 2-7)
2: (p. 2-8)
3: (p. 2-10)
4: MathWorks (p. 2-11)
5: (p. 2-14)
6: (p. 2-15)
7: MATLAB (p. 2-16)
8: (p. 2-17)
9: (p. 2-19)
10: (p. 2-20)
11: (p. 2-22)
12: (p. 2-25)

: MATLAB

MathWorks


2-4

MathWorks



MathWorks


MathWorks Web

ID MathWorks





(p. 2-49)

:



MATLAB

- Windows


- Linux MATLAB

matlab


- Macintosh
Macintosh

2-5
2

MathWorks
[Authenticate]

1 MathWorks

MathWorks (p. 2-27)


MATLAB


MATLAB
MATLAB

2-6

:


2

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD
MathWorks Web DVD
DVD
InstallForMacOSX

Linux DVD DVD


/path_to_dvd/install &

2-7
2

./install

DVD

DVD

mount -o exec /media/cdrom0

2:


[
] []
MathWorks

[
] []

2-8

Select this option to install products (recommended).

Select this option if Click Next.


you do not have an
Internet connection.

2-9
2

: Windows

[]
[]
MathWorks



(p. 1-41)

3:
[]
[]


license.txt

2-10

Click Next. Select Yes.

4: MathWorks

MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks Web

2-11
2

If you have an account, enter your


email address and password.

If you need Click Next. If you have


to create an a File Installation
account, select Key, enter it here.
this option.

MathWorks



MathWorks Web
[]
MathWorks

2-12

Enter your e-mail address. Create a password for your account.

Click Next. Enter Activation Key. Enter first name and last name.

: MathWorks
[]
[]
MathWorks
[]

2-13
2

Follow these instructions.

Click Next.

5:
MathWorks
[]



MathWorks Web


2-14

[Unset]

MathWorks
[ ]
[] "
"

Select the ...or enter Activation Key for


network license... network license.

Click Next.

6:
[]
[]

2-15
2

To install the license


manager, select Custom.

Click Next.

7: MATLAB
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012a.app Applications




[]
[]

2-16

Specify name of installation folder.

Click Next.

8:


MathWorks
(
)

[] []

(p. 3-5)

2-17
2

Select the license manager.

Clear all other Click Next.


products.

2-18

9:

[]

MathWorks Web

Specify full path of License File.

Click Next.


MathWorks Web

license.dat MATLAB
\etc

2-19
2

SERVER DAEMON SERVER (


) DAEMON

matlabroot/etc matlabroot
MATLAB

10:

Windows
MathWorks
Windows

[]

:
[
]

2-20

Choose whether to configure license Click here to review


manager as a service. configuration settings.

Click Next.

Macintosh

[Next]

2-21
2

Choose whether to configure the license Enter the user name that owns
manager to start automatically at startup time. the license manager process.

Click Next.

11:

[]
[]

2-22

Click Install.

[]

2-23
2

Click Next.

2-24

12:
[]
[]


MATLAB

Click Finish.

2-25
2


MathWorks

-

(p. 2-19)

:


MathWorks




-
MathWorks
DVD



MathWorks

MathWorks

-
MathWorks (p. 2-27)

2-26
MathWorks

MathWorks

...
(p. 2-27)
1: (p. 2-29)
2: (p. 2-31)
3: (p. 2-33)
4: MathWorks (p. 2-34)
5: (p. 2-37)
6: (p. 2-39)
7: MATLAB (p. 2-40)
8: (p. 2-41)
9: (p. 2-42)
10: ( ) (p. 2-43)
11: (p. 2-45)
12: (p. 2-48)

MathWorks



MathWorks


2-27
2

MathWorks








(p. 2-49)

:



MATLAB

- Windows


- Linux MATLAB

matlab


- Macintosh
Macintosh
MathWorks
[Authenticate]

2-28
MathWorks

( ) (p. 2-59)

MATLAB


MATLAB
MATLAB

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD
MathWorks Web DVD

2-29
2

DVD
InstallForMacOSX

Linux DVD DVD


/path_to_dvd/install &

2-30
MathWorks

./install

DVD

DVD

mount -o exec /media/cdrom0

2:

[
] []
MathWorks

[
] []

2-31
2

Select this option to install products (recommended).

Select this option if Click Next.


you do not have an
Internet connection.

2-32
MathWorks

: Windows

[]
[]
MathWorks

(p. 1-41)

3:
[]
[]


license.txt

2-33
2

Click Next. Select Yes.

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks Web


2-34
MathWorks

If you have an account, enter your


email address and password.

If you need Click Next. If you have


to create an a File Installation
account, select Key, enter it here.
this option.

MathWorks


MathWorks Web
[]
MathWorks

2-35
2

Enter your e-mail address. Create a password for your account.

Click Next. Enter Activation Key. Enter first name and last name.

: MathWorks
[]
[]
MathWorks
[]

2-36
MathWorks

Follow these instructions.

Click Next.

5:

MathWorks
[]

2-37
2


MathWorks Web


[Unset]

[
]

Select the ...or enter Activation Key for


network license... network license.

Click Next.

2-38
MathWorks

6:

:
[]

[ ]
[]



[]

(
) []

Select Typical or Custom.

Click Next.

2-39
2

7: MATLAB
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012a.app Applications




[]
[]

Specify name of installation folder.

Click Next.

2-40
MathWorks

8:
[]

[] []

(p. 3-5)

Leave the license manager unselected.

Select the Click Next.


products you
want to install.

2-41
2

9:

[]

SERVER DAEMON
license.dat
matlabroot/etc
matlabroot MATLAB

Specify License File processed


during license manager installation
on your server.

Click Next.

2-42
MathWorks

network.lic
MATLAB \licenses

SERVER INCREMENT DAEMON
USE_SERVER

10: (
)

Windows
Windows [ ] []
MATLAB

[]

2-43
2

Click Next.

Linux
Linux matlab mex

/usr/local/bin

[]

2-44
MathWorks

Select this option and specify


the location of symbolic links.

Click Next.

11:

[]
[]

2-45
2

Click Install.





DVD


MathWorks Web

2-46
MathWorks

[]

Click Next.

2-47
2

12:
MathWorks []
[]

Click Finish.

2-48

...
(p. 2-49)
Linux (p. 2-50)
Macintosh
(p. 2-52)
(p. 2-54)


MATLAB
Windows Macintosh

(Linux
Linux (p.
2-50))



Windows (p. 2-50)


Linux Macintosh (p. 2-50)

2-49
2

Windows
Windows


Windows []
Windows [] [] [
] [] []
matlabroot\etc\win32 win64 MATLAB
lmtools.exe lmtools.exe
[Start/Stop/Reread]

Linux Macintosh
Linux Macintosh
lmstart (matlabroot/etc )
matlabroot MATLAB
lmstart

Macintosh lmstart Terminal


(/Applications/Utilities ) MATLAB
/etc

cd /Applications/MATLAB_R2011a.app/etc

: lmstart

(lmgrd)
su
lmgrd

su username -c "lmgrd -c license_file -l /var/tmp/LM_TMW.log"

username

Linux
Linux

2-50

MathWorks
Bourne matlabroot/etc/flexnet.boot.linux

Bourne

1 root

2 ()

ln -s matlabroot/etc/lmboot /etc/lmboot_TMW
ln -s matlabroot/etc/lmdown /etc/lmdown_TMW

3 32 64



Debian cp matlabroot/etc/flexnet.boot.linux /etc/init.d/flexnet
SUSE
Red Hat cp matlabroot/etc/flexnet.boot.linux
Fedora Core /etc/rc.d/init.d/flexnet

4 flexnet
lmboot_TMW username root

5 /etc/inittab

6 rc
32 64 Linux
5

2-51
2



Debian cd /etc/rc5.d;
ln -s ../init.d/flexnet S90flexnet
Red Hat cd /etc/rc.d/rc5.d;
Fedora Core ln -s ../init.d/flexnet S90flexnet
SUSE cd /etc/init.d/rc5.d;
ln -s ../flexnet S90flexnet

7

Linux

SUSE version 10 /etc/init.d


.depend.start

/etc/init.d/.depend.start

flexnet: network

6 S90flexnet symlink
S99flexnet

Macintosh


1 /Library

2 StartupItems

3 matlabroot/etc/MATLABLmgr StartupItems

2-52

4 /etc/MATLABlmgr config_lm.sh
(/Applications/Utilities
)

cd /Library/StartupItems/MATLABLmgr
./config_lm.sh

5 MathWorks
MathWorks /Applications/MATLAB_R2011a

/Applications/MATLAB_R2011a

6 whoami

"Starting MATLAB License Manager"


3



MATLABLmgr

1 [Finder] [] []

2 []

/Library/StartupItems/MATLABLmgr

[] MATLABLmgr

3 StartupParameters.plist StartupParameters_disabled.plist

2-53
2

1 3
StartupParameters_disabled.plist StartupParameters.plist

Macintosh

1 [Finder] [] []

2 []

/Library/StartupItems/MATLABLmgr

[] MATLABLmgr

3 MATLABLmgr [Finder] [
]


FLEXnet

MATLAB PDF
(matlabroot\etc\LicenseAdministration.pdf)

LMTOOLS GUI (Windows ) (p. 2-54)


(p. 2-55)

LMTOOLS GUI (Windows )


Windows FLEXnet Publisher LMTOOLS
(GUI) LMTOOLS

2-54

LMTOOLS GUI

1 LMTOOLS matlabroot\etc\$ARCH lmtools.exe


matlabroot MATLAB
$ARCH win32

2 [Server Status]

3 [Perform Status Enquiry] LMTOOLS


lmutil lmstat -a


FLEXnet

2-55
2

Windows FLEXnet lmutil.exe



matlabroot\etc\$ARCH matlabroot
MATLAB $ARCH win32

DOS lmstat
lmutil

lmutil lmstat -a -c "C:\Program Files\MATLAB\R2012a\etc\license.dat"

-a -c
lmutil


lmutil - Copyright (c) 1989-2010 Flexera Software Inc. All Rights Reserved.
Flexible License Manager status on Tue 11/4/2011 10:11

[Detecting lmgrd processes...]


License server status: 27000@ah-jcustomer
License File(s) on customerj: C:\Program Files\MATLAB\R2012a\etc\license.dat:

customerj: license server UP (MASTER) v.11.9

Vendor daemon status (on ah-jcustomer):

MLM: UP v11.9

Feature usage info:

Users of MATLAB: (Total of 5 licenses available)

Users of SIMULINK: (Total of 5 licenses available)

Users of Control_Toolbox: (Total of 5 licenses available)

Users of Identification_Toolbox: (Total of 5 licenses available).

2-56

lmutil

lmutil -h

-h

lmutil lmstat -h

Linux Macintosh
matlabroot/etc
lmstat

lmstat -a

lmutil - Copyright (c) 1989-2010 Flexera Software Inc. All Rights Reserved.
Flexible License Manager status on Tue 11/4/2011 10:11

License server status: 27000@ah-jcustomer


License File(s) on customerj: /user/local/MATLAB/R2012a/etc/license.dat:

customerj: license server UP (MASTER) v.11.9

Vendor daemon status (on customerj):

MLM: UP v11.9

Feature usage info:

Users of MATLAB: (Total of 5 licenses available)

Users of SIMULINK: (Total of 5 licenses available)

-h

lmstat -h

2-57
2


lmdiag
lmdown
(lmgrd )
lmhostid ID
lmreread

: lmreread
FLEXnet
INCLUDE 15

lmstat

lmswitchr
lmver

2-58
( )

( )
...
(p. 2-59)
(p. 2-59)

: MATLAB ()
(p. 2-61)

MATLAB
MathWorks



( )

MathWorks DVD installer_input.txt



Windows

copy Z:\installer_input.txt C:\temp\my_installer_input.txt

2-59
2

2

destinationFolder=

destinationFolder=C:\Program Files\MATLAB\R2012a


fileInstallationKey=

4 -inputFile

Windows [] [
] []

setup.exe -inputFile C:\temp\my_installer_input.txt

Linux Macintosh

2-60

: MATLAB
( ) (p. 2-59)

MATLAB uninstall
uninstaller_input.txt
Windows

copy matlabroot\uninstall\uninstaller_input.txt C:\temp\my_uninstall.txt

2

outputFile=

MATLAB




mode=automated []

4 -inputFile
(uninstall.exe)

[] []
[] uninstall

uninstall.exe -inputFile C:\temp\my_uninstall.txt

2-61
2

2-62
3

MathWorks

(p. 3-2)
(p. 3-6)

MathWorks
MATLAB

MathWorks Web
(www.mathworks.co.jp/support/)
3


...
(p. 3-2)
(p. 3-2)
(p. 3-5)


MathWorks DVD DVD MathWorks Web

Microsoft Windows
DVD setup.exe




MathWorks


[]

[] (
MathWorks
(p. 3-3))

3-2

Enter server name, port, and


other required information.

Click OK.

MathWorks
MathWorks MathWorks MathWorks

MathWorks

1
MathWorks

2 MathWorks DVD DVD


3 [] [
]

3-3
3

4 []
[MATLAB ]
[]

5 [MathWorks ]

[]

[] []
[]
[OK]

Select this option to activate Click OK.


without an account.

[MathWorks ]
[]

3-4

6 []
[]

: [
]

7 []

[] []

[OK]
[]

3-5
3


MATLAB
MathWorks FLEXnet


matlabroot\etc\$ARCH FLEXnet lmlog.txt


(p. 2-54)

MathWorks Web
(www.mathworks.co.jp/support/) []
Support
[ ]

Select an error.


matlabroot\etc\LicenseAdministration.pdf PDF FLEXnet
Publisher Licensing Toolkit

3-6



27000


DAEMON port= <>


ASCII

INCREMENT

( INCREMENT
) (\)

(#) MathWorks
(
ID )

3-7
3

# BEGIN-------cut here-------CUT HERE-------BEGIN


# MATLAB license passcode file.
# LicenseNo: 12345 HostID: INTERNET=144.212.101.43
INCREMENT TMW_Archive MLM 18 01-sep-2010 0 \
BC9DE773A77D15AF8 VENDOR_STRING=83 HOSTID=DEMO SN=12345
INCREMENT MATLAB MLM 18 01-sep-2010 1 \
4C9D3348561BE9E3B USER_BASED DUP_GROUP=U SN=12345
INCREMENT SIMULINK MLM 18 01-sep-2010 1 \
1CD148466EF58DF8B USER_BASED DUP_GROUP=U SN=12345
INCREMENT Signal_Toolbox MLM 18 01-sep-2010 1 \
6CF74B458BA143DC3 USER_BASED DUP_GROUP=U SN=12345
# END---------cut here-------CUT HERE-------END


MATLAB
MATLAB

1 MATLAB -c
-c
-c




2 MATLAB MATLAB
2
MLM_LICENSE_FILE

3-8


MLM_LICENSE_FILE
MathWorks (MathWorks
)
LM_LICENSE_FILE FLEXnet

4
MATLAB \licenses license.dat
.lic

3-9

You might also like