You are on page 1of 163

MATLAB & Simulink

Release 2012b

MathWorks
www.mathworks.co.jp
comp.soft-sys.matlab
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

Web
Newsgroup

()
()

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
1997
1998
1999
1999
2000
2001
2002

12
5
3
1
11
11
6
7

2004
2004
2005
2005
2006
2006
2007
2007
2008
2008
2009
2009
2010
2010

6
10
3
9
3
9
3
9
3
10
3
9
3
9

9
10
11
12
13
14

2011
2011
2012
2012

4
9
3
9

1
2
3
4
5
6
7
8

MATLAB 5.0 (Release 8)


MATLAB 5.1 (Release 9)
MATLAB 5.2 (Release 10)
MATLAB 5.3 (Release 11)
MATLAB 5.3.1 (Release 11.1)
MATLAB 6.0 (Release 12)
MATLAB 6.1 (Release 12.1)
MATLAB 6.5 (Release 13)
Windows
MATLAB 7.0 (Release 14)
MATLAB 7.0.1 (Release 14SP1)
MATLAB 7.0.4 (Release 14SP2)
MATLAB 7.1 (Release 14SP3)
MATLAB 7.2 (Release 2006a)
MATLAB 7.3 (Release 2006b)
MATLAB 7.4 (Release 2007a)
MATLAB 7.5 (Release 2007b)
MATLAB 7.6 (Release 2008a)
MATLAB 7.7 (Release 2008b)
MATLAB 7.8 (Release 2009a)
MATLAB 7.9 (Release 2009b)
MATLAB 7.10 (Release 2010a)
MATLAB 7.11 (Release 2010b)

MATLAB 7.12 (Release 2011a)


MATLAB 7.13 (Release 2010b)
MATLAB 7.14 (Release 2012a)
MATLAB 7.15 (Release 2012b)

1
. . . . . . . . . . . . . . . . .

1-2

MathWorks . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1: . . . . . . . . . . . . . . . . . . . . . . . . .
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3: . . . . . . . . . . .
4: MathWorks . . . . . . . . . . . . . .
5: . . . . . . . . . . . . . .
6: . . . . . . . . . . . . . . . . . . . . .
7: . . . . . . . . . . . . . . . .
8: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10: . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11: . . . . . . . . . . . . . . . . . . . . . . . . .

1-3
1-3
1-5
1-7
1-10
1-11
1-15
1-18
1-19
1-20
1-23
1-25
1-26

. . . . . . . . . . . . . . . . . . . . . . . .

1-28

. . . . . . . . . . . . . . . . . . . . . . . . . . .
1: . . . . . . .
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3: MathWorks . . . . . . . . . . . . . .
4: . . . . . . . . . . . .
5: . . . . . . . . . . . . . . . .
6: . . . . . . . . . . . . . . . . . . . . . . . . . . .
7: . . . . . . . . . . . . . . . . .
8: . . . . . . . . . . . . . . . . . . . . .

1-29
1-29

. . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-42
1-42

1-30
1-32
1-35
1-37
1-38
1-39
1-40

1: . . . . . . . . . . . . . . . . . . . . . . . . .
2: . . .
3: . . . . . . . . . . . . . . . . . . . . . .
4: . . . . . . . . . . . . . .
5: . . . . . . . . . . . . . . . . . . . . .
6: . . . . . . . . . . . . . . . .
7: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9: . . . . . . .
10: . . . . . . . . . . . . . . . . . . . . . . . . .
11: . . . . . . . . . . . . . .
12: . . . . . . . . . . . . . .
13: . . . . . . . . . . . . . . . . . . . .

1-44
1-45
1-46
1-46
1-49
1-50

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . .
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . .
MATLAB . . . . . . . . . . . . . . . . . .

1-60
1-60
1-61
1-61
1-61
1-61

MathWorks () . . . . . . . . . . . . . . . . . . . . .
Windows . . . . . . . . . . . . . . . . . . . . . . .
Linux . . . . . . . . . . . . . . . .
Macintosh . . . . . . . . . . . .

1-63
1-63
1-66
1-66

. . . . . . . . . . . . . . . . . . . . .

1-68

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-74

1-51
1-52
1-53
1-54
1-55
1-56
1-58

2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

vi

2-2
2-2
2-6

. . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1: . . . . . . . . . . . . . . . . . . . . . . . . .
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3: . . . . . . . . . . .
4: MathWorks . . . . . . . . . . . . . .
5: . . . . . . . . . . . . . .
6: . . . . . . . . . . . . . . . . . . .
7: . . . . . . . . . . . . . . . .
8: . . . . . . . . . . . . . . . . . .
9: . . . . . . . . . . . . . .
10: . . . . . . . . . . . . . . .
11: . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12: . . . . . . . . . . . . . . . . . . . . . . . . .

2-9
2-9
2-12

. . . . . . . . . . . . . . . .

2-31

MathWorks
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1: . . . . . . . . . . . . . . . . . . . . . . . . .
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3: . . . . . . . . . . .
4: MathWorks . . . . . . . . . . . . . .
5: . . . . . . . . . . . . . .
6: . . . . . . . . . . . . . . . . . . .
7: . . . . . . . . . . . . . . . .
8: . . . . . . . . . . . . . . . . . .
9: . . . . . . . . . . . . . .
10: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11: . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12: . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
Linux . . . . . . . . . . . . . . . . . .
Macintosh
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .

2-13
2-15
2-16
2-19
2-20
2-21
2-22
2-24
2-25
2-27
2-30

2-32
2-32
2-34
2-36
2-38
2-39
2-42
2-44
2-45
2-46
2-47
2-48
2-50
2-53
2-54
2-54
2-55
2-57
2-59

vii

( ) . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .

2-64
2-64
2-64

. . . . . . . . . .

2-66

3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . .
MathWorks . . . . .

3-2
3-2
3-2
3-2
3-3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . .

................................................

3-6
3-6
3-7

Index

viii

MathWorks

(p. 1-2)

MathWorks (p. 1-3)

(p. 1-28)

(p. 1-29)

(p. 1-42)

(p. 1-60)

MathWorks () (p. 1-63)

(p. 1-68)

(p. 1-74)

MathWorks
MathWorks

Microsoft Windows (32 64 )

Linux (32 64 )

Mac OS X

MathWorks (p. 1-3)

(p. 1-29)

(p. 1-42)

(p. 1-60)

MathWorks () (p. 1-63)

(p. 1-68)

(p. 1-74)

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

MATLAB

1-4

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

MathWorks

(p. 1-42)

MATLAB


MATLAB

10
9 MATLAB
9

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD


MathWorks Web DVD
DVD
InstallForMacOSX

Linux DVD DVD

1-5

/path_to_dvd/install &

1-6

MathWorks



./install

DVD

DVD
mount -o exec

/media/cdrom0

2:

[
] []
MathWorks

[
] []

1-7

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

3:
[]
[]

license.txt

Click Next.

1-10

Select Yes.

MathWorks

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks
Web

1-11

If you have an account, enter your


email address and password.

If you need
to create an
account, select
this option.

Click Next.

If you have
a File Installation
Key, enter it here.

MathWorks


MathWorks Web
[]
MathWorks

1-12

MathWorks

: MathWorks
[]
[]
MathWorks
[]

1-13

1-14

MathWorks

5:
MathWorks
[]


MathWorks Web


[Unset]

MathWorks
[ ]
[] "
"

MathWorks

1-15

License labels and options


descriptions help identify licenses.

Select a license.

Select option
and enter
Activation Key.

Click Next.

[ ]
[]

1-16

MathWorks

1-17

6:
[ ] [] []
[]


[]

[]

( )
Select Typical or Custom.

Click Next.

1-18

MathWorks

7:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012b.app Applications

[]
[]
Specify name of installation folder.

Click Next.

1-19

8: (
)
[]



[]

1-20

MathWorks

MathWorks Web

DVD

[] []
DVD
[]

[ ]

[
]
[]

1-21

1-22

MathWorks

9: (
)

Windows
Windows [ ] []
MATLAB

[]

Click Next.

Linux
Linux matlab mex

/usr/local/bin

1-23

[]

1-24

MathWorks

10:

[]
[]

1-25

DVD


MathWorks Web

[]

11:
[]

MathWorks
MathWorks
[
]

1-26

MathWorks

[MATLAB
] [] (
)


(p. 1-29)

1-27

MATLAB


MATLAB

10
9 MATLAB
9

1-28

...
1: (p. 1-29)
2: (p. 1-30)
3: MathWorks (p. 1-32)
4: (p. 1-35)
5: (p. 1-37)
6: (p. 1-38)
7: (p. 1-39)
8: (p. 1-40)

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-29

( Ctrl
) []

2:

"" MathWorks


MathWorks
[
]

MathWorks

1-30

[]
MathWorks


: Windows

[]
[]

1-31


MathWorks

3: MathWorks
:

MathWorks []
MathWorks

MathWorks []
[]
[
] []



[]

1-32

MathWorks



MathWorks
Web []

1-33

: MathWorks
[]
[]
MathWorks
[]

1-34

4:
:


MathWorks
[]

1-35


MathWorks Web


[Unset]

MathWorks
[ ]
[] "
"

1-36

5:
:


[ ]
[
]
[]

1-37

6:
: []



[
]
MathWorks

ID
MathWorks


[
] []

[
]
[]
MathWorks

1-38

7:
[]
MathWorks
( [ ]
)

MathWorks
MathWorks

1-39

8:
[]

1-40

1-41

...
(p. 1-42)
1: (p. 1-44)
2: (p. 1-45)
3: (p. 1-46)
4: (p. 1-46)
5: (p. 1-49)
6: (p. 1-50)
7: ( ) (p. 1-51)
8: ( ) (p. 1-52)
9: (p. 1-53)
10: (p. 1-54)
11: (p. 1-55)
12: (p. 1-56)
13: (p. 1-58)



MathWorks Web

1-42

MATLAB

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

1-43

MathWorks (p. 1-3)


MathWorks

(p. 2-9)

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD


MathWorks Web DVD
DVD
InstallForMacOSX

Linux DVD DVD

/path_to_dvd/install &

1-44



./install

DVD

DVD
mount -o exec

/media/cdrom0

2:
[
] []

1-45

3:
[]
[]

license.txt

Click Next.

Select Yes.

4:
[
]

[
] []
MathWorks Web

1-46

[ ]
[]


[]
MathWorks Web (License Center)

ID

(: R2012b)

1-47

(
)


1 []

Windows Linux []/[Print]

2 MathWorks Web

MathWorks

1-48

5:
[ ] [] []
[]


[]

[]

( )
Select Typical or Custom.

Click Next.

1-49

6:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012b.app Applications

[]
[]
Specify name of installation folder.

Click Next.

1-50

7: (
)
[]



[]

1-51

8: (
)

Windows
Windows [ ] []
MATLAB

[]

Click Next.

Linux
Linux matlab mex

/usr/local/bin

1-52

[]

9:

[]
[]

1-53

10:
[]

MathWorks
[]
[MATLAB
] [] (
)

1-54

11:
MathWorks

[
] []

1-55

12:


MathWorks Web
[ ]

[]
[
] []

1-56



[ ]

ID

(: R2012a)

(
)

[]

1-57

MathWorks Web
MathWorks

[]

:
MATLAB

13:
[]

1-58

1-59

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

MATLAB
MATLAB

Windows :

Windows 7 Windows []
[MATLAB R2012b]

Windows XP Windows []
[] [MATLAB] [R2012b] [MATLAB R2012b]

[ ]
MATLAB

matlabroot/bin matlabroot MATLAB


matlab.exe

Linux

1-60

matlab [
]
matlabroot/bin/matlab
matlabroot MATLAB

Macintosh

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-61

1-62

MATLAB

MATLAB

MATLAB []

MATLAB

MATLAB
HTML

MathWorks Web (www.mathworks.co.jp)


[]
()

MathWorks ()

MathWorks ()
MathWorks

: 2

(p. 1-68)

Windows
MathWorks ()

1 MATLAB
2

Windows 7 [] [
] [ ] []
[MATLAB R2012b]

Windows XP [] [
] [ ] []
[MATLAB R2012b] [/]

matlabroot/uninstall/bin/$ARCH matlabroot
MATLAB $ARCH win32

uninstall.exe


(p. 2-66)
3 [] [

]
MATLAB MathWorks

1-63

MathWorks
MATLAB
[OK] [
]
MATLAB [MATLAB
]
MATLAB
MATLAB
MATLAB prefdir

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

username

1-64

MathWorks ()

4 ()

MATLAB

matlabroot/archives
[]
5 []


[] MATLAB


(p. 1-68)

1-65

Linux
:

(p. 1-68)

1 MATLAB
2

matlabroot/etc lmdown
3 Linux

rm -rf matlabroot

matlabroot MATLAB

Macintosh
: MATLAB

MATLAB
1 Macintosh

MATLAB

2 MATLAB MATLAB

lmdown

1-66

MathWorks ()

3 MATLAB

Applications MATLAB_R2011a.app

4 MATLAB [Finder] [

1-67

MathWorks

2
MathWorks

MathWorks

MathWorks Web

: 2

MathWorks
() (p. 1-63)

1-68

MATLAB [] []

MATLAB matlabroot

Windows :
matlabroot\uninstall\bin\win32\deactivate_matlab.exe
Linux
matlabroot/bin/deactivate_matlab.sh
Macintosh
/Applications/MATLAB_R2012b.app/bin/deactivate_matlab.sh

Windows 7 [] MATLAB

Windows XP [] [
] [MATLAB] [R2012b] [MATLAB R2012b
]

2 []

MATLAB

1-69

[]
[OK]
[MathWorks ]

1-70

3 []

MathWorks

4 [OK]

MathWorks
[
] [OK] [MathWorks
]

Click OK.

MathWorks

1-71

[]

MathWorks Web

[OK] [MathWorks
]
Deactivation string.

Click OK.

5 [MathWorks

[] [
]

1-72

1-73

: MathWorks Web (www.mathworks.com)

1-74

[] [ ]
MathWorks

Microsoft Windows (32 64 )

Linux (32 64 )

Mac OS X

(p. 2-2)

(p. 2-9)

(p. 2-31)

MathWorks
(p. 2-32)

(p. 2-54)

( ) (p. 2-64)

(p. 2-66)

...
(p. 2-2)
(p. 2-6)
MathWorks

MathWorks MATLAB

MATLAB
MATLAB
2


MathWorks
MathWorks

:

MathWorks
ID

MathWorks Flexera Sofware, Inc


FlexNet Publisher

MathWorks

2-2

MathWorks
MathWorks MathWorks

MATLAB

2-3


MATLAB
( "
" )
MATLAB 1
MATLAB

Server
MATLAB
FLEXnet

Client

Client

Client

Windows
Linux
Windows


MATLAB MATLAB

2-4


" "
MATLAB
MATLAB MATLAB

1
Server
FLEXnet

Client
MATLAB

Client
MATLAB

Client
MATLAB

MathWorks

-
FlexNet



FlexNet


(p. 2-9)

MathWorks -
MathWorks

2-5


MathWorks

MathWorks -
MathWorks



MathWorks (p. 2-32)


(
) (p. 2-64)

:

MathWorks Web


ASCII

INCREMENT

( INCREMENT
) (\)

2-6

(#) MathWorks
(
ID )
# 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

2-7

MLM_LICENSE_FILE


MathWorks (MathWorks
)

LM_LICENSE_FILE

FlexNet

MATLAB \licenses license.dat


.lic

2-8


...
(p. 2-9)
1: (p. 2-12)
2: (p. 2-13)
3: (p. 2-15)
4: MathWorks (p. 2-16)
5: (p. 2-19)
6: (p. 2-20)
7: (p. 2-21)
8: (p. 2-22)
9: (p. 2-24)
10: (p. 2-25)
11: (p. 2-27)
12: (p. 2-30)

: MATLAB

MathWorks

2-9

MathWorks


MathWorks


MathWorks Web

ID MathWorks



(p. 2-54)

MATLAB

2-10

Windows

Linux MATLAB

matlab

Macintosh
Macintosh

MathWorks
[Authenticate]

1 MathWorks

MathWorks (p. 2-32)

MATLAB

MATLAB
MATLAB

2-11

:


2

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD


MathWorks Web DVD
DVD
InstallForMacOSX

Linux DVD DVD

/path_to_dvd/install &

2-12



./install

DVD

DVD
mount -o exec

/media/cdrom0

2:

[
] []
MathWorks

[
] []

2-13

Select this option to install products (recommended).

Select this option if Click Next.


you do not have an
Internet connection.

2-14

: Windows

[]
[]
MathWorks

(p. 1-42)

3:
[]
[]

license.txt

2-15

Click Next.

Select Yes.

4: MathWorks
:
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks
Web

2-16

If you have an account, enter your


email address and password.

If you need
to create an
account, select
this option.

Click Next.

If you have
a File Installation
Key, enter it here.

MathWorks


MathWorks Web
[]
MathWorks

2-17

: MathWorks
[]
[]
MathWorks
[]

2-18

5:
MathWorks
[]


MathWorks Web

2-19

[Unset]

MathWorks
[ ]
[] "
"

6:
[]
[]

2-20

7:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012b.app Applications

[]
[]

2-21

Specify name of installation folder.

Click Next.

8:



MathWorks (
)

[] []

2-22

2-23

9:

[]
MathWorks Web


MathWorks Web

2-24

license.dat MATLAB
\etc

SERVER DAEMON SERVER (


) DAEMON

matlabroot/etc matlabroot
MATLAB

10:

Windows
MathWorks
Windows

[]

:
[
]

2-25

Macintosh

[Next]

2-26

11:

[]
[]

2-27

[]

2-28

2-29

12:
[]
[]

MATLAB

2-30

MathWorks

-

(p. 2-24)

MathWorks

-
MathWorks
DVD


MathWorks

MathWorks

-
MathWorks (p. 2-32)

2-31

MathWorks

...
(p. 2-32)
1: (p. 2-34)
2: (p. 2-36)
3: (p. 2-38)
4: MathWorks (p. 2-39)
5: (p. 2-42)
6: (p. 2-44)
7: (p. 2-45)
8: (p. 2-46)
9: (p. 2-47)
10: ( ) (p. 2-48)
11: (p. 2-50)
12: (p. 2-53)

MathWorks

MathWorks

2-32

MathWorks

MathWorks


(p. 2-54)

MATLAB

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

2-33

( ) (p. 2-64)

MATLAB


MATLAB
MATLAB

1:

2-34

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD


MathWorks Web DVD

MathWorks

DVD
InstallForMacOSX

Linux DVD DVD

/path_to_dvd/install &

2-35



./install

DVD

DVD
mount -o exec

/media/cdrom0

2:

[
] []
MathWorks

[
] []

2-36

MathWorks

Select this option to install products (recommended).

Select this option if Click Next.


you do not have an
Internet connection.

2-37

: Windows

[]
[]
MathWorks

(p. 1-42)

3:
[]
[]

license.txt

2-38

MathWorks

Click Next.

Select Yes.

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks
Web

2-39

If you have an account, enter your


email address and password.

If you need
to create an
account, select
this option.

Click Next.

If you have
a File Installation
Key, enter it here.

MathWorks


MathWorks Web
[]
MathWorks

2-40

MathWorks

: MathWorks
[]
[]
MathWorks
[]

2-41

5:
:

MathWorks
[]

2-42

MathWorks


MathWorks Web


[Unset]

[
]

2-43

6:
:
[]
[ ] [] []
[]


[]

[]

( )
Select Typical or Custom.

Click Next.

2-44

MathWorks

7:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2012b.app Applications

[]
[]
Specify name of installation folder.

Click Next.

2-45

8:
[]

[] []

2-46

MathWorks

9:

[]


SERVER DAEMON

license.dat

matlabroot/etc
matlabroot MATLAB

2-47

network.lic
MATLAB \licenses

SERVER INCREMENT DAEMON


USE_SERVER

10: (
)

Windows
Windows [ ] []
MATLAB

[]

2-48

MathWorks

Click Next.

Linux
Linux matlab mex

/usr/local/bin
[]

2-49

11:

[]
[]

2-50

MathWorks

DVD


MathWorks Web

2-51

[]

2-52

MathWorks

12:
MathWorks []
[]

2-53

...
(p. 2-54)
Linux (p. 2-55)
Macintosh
(p. 2-57)
(p. 2-59)


MATLAB
Windows Macintosh

(Linux
Linux
(p. 2-55))

Windows (p. 2-55)

Linux Macintosh (p. 2-55)

2-54

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-55

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
SUSE

cp matlabroot/etc/flexnet.boot.linux /etc/init.d/flexnet

Red Hat
Fedora Core

cp matlabroot/etc/flexnet.boot.linux
/etc/rc.d/init.d/flexnet

4 flexnet

lmboot_TMW username root


5 /etc/inittab
6 rc

32 64 Linux
5

2-56

Debian

cd /etc/rc5.d;
ln -s ../init.d/flexnet S90flexnet

Red Hat
Fedora Core

cd /etc/rc.d/rc5.d;
ln -s ../init.d/flexnet S90flexnet

SUSE

cd /etc/init.d/rc5.d;
ln -s ../flexnet S90flexnet


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-57

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"



MATLABLmgr
1 [Finder] [] []
2 []

/Library/StartupItems/MATLABLmgr

[] MATLABLmgr

3 StartupParameters.plist StartupParameters_disabled.plist

1 3
StartupParameters_disabled.plist StartupParameters.plist

2-58

Macintosh
1 [Finder] [] []
2 []

/Library/StartupItems/MATLABLmgr

[] MATLABLmgr

3 MATLABLmgr [Finder] [


FlexNet

MATLAB PDF
(matlabroot\etc\LicenseAdministration.pdf)

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

(p. 2-60)

LMTOOLS GUI (Windows )


Windows FlexNet Publisher LMTOOLS
(GUI) LMTOOLS

LMTOOLS GUI

1 LMTOOLS matlabroot\etc\$ARCH lmtools.exe

matlabroot MATLAB

2-59

$ARCH win32

2 [Server Status]
3 [Perform Status Enquiry] LMTOOLS

lmutil lmstat -a


FlexNet

Windows FlexNet lmutil.exe

matlabroot\etc\$ARCH matlabroot
MATLAB $ARCH win32

2-60

DOS lmstat
lmutil
lmutil lmstat -a -c "C:\Program Files\MATLAB\R2012b\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\R2012b\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).

lmutil

lmutil -h

2-61

-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/R2012b/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-62

lmdiag

lmdown


(lmgrd )

lmhostid

ID

lmreread



: lmreread
FlexNet
INCLUDE 15

lmstat

lmswitchr

lmver

2-63

( )
...
(p. 2-64)
(p. 2-64)

: MATLAB ()
(p. 2-66)
MATLAB
MathWorks



( )

MathWorks DVD installer_input.txt


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

2-64

( )

destinationFolder=

destinationFolder=C:\Program Files\MATLAB\R2012b


fileInstallationKey=

3
4 -inputFile


Windows [] [
] []

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

Linux Macintosh

2-65


: MATLAB
( ) (p. 2-64)

MATLAB uninstall
uninstaller_input.txt
Windows

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


2

outputFile=

MATLAB


mode=automated []

3
4 -inputFile

(uninstall.exe)
[] []
[] uninstall

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

2-66

2-67

2-68

MathWorks

(p. 3-2)

(p. 3-6)

MathWorks
MATLAB

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

...
(p. 3-2)
(p. 3-2)
(p. 3-2)
MathWorks (p. 3-3)

MathWorks DVD DVD MathWorks Web


Microsoft Windows
DVD setup.exe

[] []

[OK]
[]




MathWorks

3-2

[]

[] (
MathWorks
(p. 3-3))
Enter server name, port, and
other required information.

Click OK.

MathWorks
MathWorks MathWorks MathWorks

MathWorks

3-3

MathWorks

2 MathWorks DVD DVD

3 [] [

]

4 []

[MATLAB ]
[]
5 [MathWorks ]

3-4

[]

[] []
[]
[OK]

Select this option to activate


without an account.

Click OK.

[MathWorks ]
[]

6 []

[]

: [
]

7 []

3-5

MATLAB


MATLAB
MathWorks FLEXnet

matlabroot\etc\$ARCH
FlexNet lmlog.txt


(p. 2-59)
MathWorks Web
(www.mathworks.co.jp/support/)

[ ]

Select an error.


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

3-6



27000


DAEMON port= <>

3-7

3-8

Index
A

activating MATLAB software


choosing automatic or manual 1-30
choosing manual option 1-55
completing off-network activation
on systems running Windows 1-58
confirming settings 1-39
for someone else 1-38
procedure 1-29
selecting a license during activation 1-35
starting activation application 1-26 1-30
starting activation application after off-network
installation 1-55
starting activation application after off-network
installations 1-54
starting the activation application 1-29
without a MathWorks Account 3-3
activation application
starting 1-29
Activation Key
creating an account during network
installations 2-17
creating an account during standalone
installations 1-12
specifying 2-20 2-43
specifying during standalone installations 1-15 to
1-16
used to create MathWorks Account 1-33
activation label
viewing during activation 1-35
activation type
selecting during activation 1-37
Advanced Options button
activating without a MathWorks Account 3-3

client installation procedure


network client 2-32
client systems
accessing MATLAB 2-5
concurrent access configurations 2-4
current folder
initial 1-61

D
daemons
opening access in security firewalls 3-7
starting 2-55
deactivating MATLAB installations 1-68
deactivation string
deactivating without an Internet connection 1-68
retrieving 1-71
Designated Computer activation type
selecting during activation 1-37

F
file associations
specifying during installation 1-23
File Installation Key
entering for off-network installation 1-46
obtaining 1-47
required for off-network installations 1-42
firewalls
opening access to license manager daemons 3-7
FLEXnet
troubleshooting 3-6

H
B
boot scripts
use by installer 2-55

host ID
in License File 2-7

Index-1

Index

I
INCREMENT lines

in License Files 2-6


initial current folder 1-61
install_input.txt 2-64
installation folder
specifying 1-19
specifying for off-network installations 1-50
specifying in network installations 2-45
on systems running Windows 2-21
installation options
specifying file associations 1-23
specifying in network installations 1-52 2-48
installation procedure
network 2-9
network client 2-32
noninteractive 2-64
installation type
choosing during standalone installations 1-18
choosing typical or custom 1-50
choosing typical or custom in network installations
on systems running Windows 2-20 2-44
installer
running noninteractively 2-64
starting 1-5 1-44 2-12 2-34
installer input file
specifying 2-64
installing
starting the installer manually 3-2
turning off virus-checking software during
installation 3-2
installing MATLAB
choosing automatic or manual in network
installations
on systems running Windows 2-13 2-36
choosing automatic or manual installation 1-7
choosing manual for off-network
installations 1-45
in network configurations 2-1
in standalone environments 1-3

Index-2

network procedure 2-5


preparing for installation in standalone
environments 1-3
preparing for off-network installations 1-42
preparing to install in a network configuration
on systems running Windows 2-9 2-32
standard installation procedures 1-1 to 1-2
installing MATLAB software
finishing network installation
on systems running Windows 2-30 to 2-31
2-53

L
License Files
comment lines 2-7
getting the information you need to obtain 1-57
INCREMENT lines 2-6
processing in installation
on systems running Windows 2-24 2-48
required for off-network installations 1-42
search path 2-6
specifying during activation after off-network
installation 1-56
specifying location in network installation 2-24
2-47
license manager
automating startup
on Macintosh systems 2-57
configuring in network installation 2-25
disabling 2-58
installing on server in network configurations 2-9
re-enabling 2-58
removing 2-59
starting automatically at boot time 2-55
starting daemons 2-55
troubleshooting 3-6
using the LMTOOLS GUI 2-59
utility programs 2-60
license numbers

Index

selecting during activation 1-35


license options
viewing during activation 1-35
license servers
defined 2-4
licenses
deactivating 1-68
selecting during installation 1-15
selecting in network installations
on systems running Windows 2-19 2-42
validating
on systems running Windows operating
system 1-61
licensing
viewing the log file 3-6
LM_LICENSE_FILE environment variable 2-6
lmdiag

diagnosing license checkout problems 2-63


lmdown

shutting down the license manager 2-63


lmhostid

getting system host ID 2-63


lmlog.txt

license manager log file 3-6


lmreread

forcing license manager to reprocess the License


File 2-63
lmstat

viewing license manager status 2-63

log files
license manager 3-6
login name
specifying during activation 1-38

M
MathWorks Account
creating during activation 1-33
creating during installation 1-12
creating during network installations 2-17
creating for someone else during activation 1-38
installing without an account 3-3
logging in 1-11
logging in during activation 1-32
logging in during network installations
on systems running Windows 2-16 2-39
MATLAB
getting started 1-61
installing
in network configurations 2-5
starting 1-60
MATLAB installation folder
specifying 1-19
specifying for off-network installations 1-50
specifying in network installations 2-45
on systems running Windows 2-21
MATLABLmgr script 2-57
MLM_LICENSE_FILE environment variable 2-6

lmswitchr

specifying the report log file 2-63


LMTOOLS

licensing utility GUI 2-59


lmtools.exe

licensing utilities GUI 2-59


lmutil.exe

license manager utilities 2-60


lmver

get FlexNet version number 2-63


local client access 2-5

N
network client installation procedure
installing software on clients in network
configurations 2-32
network configurations
installing MATLAB software 2-1
network installation procedure
installing MATLAB in network configurations 2-9
post-installation tasks 2-54

Index-3

Index

operating system user name


specifying during activation 1-38
overwriting an existing installation
individual installation 1-5 1-28

security firewalls
opening access to license manager daemons 3-7
selecting licenses 1-15
in network installations
on systems running Windows 2-19 2-42
selecting products
for off-network installations
on systems running Windows 1-51
in network installations
on systems running Windows 2-22 2-46
on systems running Windows 1-20

P
passcode
encrypted in license file 2-6
port numbers
opening access in security firewalls 3-7
preference files
removing 1-64
products
downloading during standalone installations 1-20
selecting during installation 1-20
selecting for off-network installations
on systems running Windows 1-51
selecting in network installations
on systems running Windows 2-22 2-46
proxy server
specifying 3-2
specifying during activation 1-31
proxy server settings
setting 1-30

R
remote client access
setting up 2-4
removing a MATLAB installation 1-63
using uninstaller properties file 2-66
requirements. See system requirements
reviewing software license agreement 1-10
for network installations 2-15
on systems running Windows 2-38
on systems running Windows
off-network installations 1-46

setup.exe

in noninteractive installations 2-64


starting 3-2
shortcut
MATLAB shortcut on desktop 1-60
shortcuts
specifying during installation 1-23
silent installations
running without screen displays 2-64
software license agreement
reviewing 1-10
reviewing for off-network installations 1-46
reviewing in network installations 2-15
on systems running Windows 2-38
Standalone Named User activation type
selecting during activation 1-37
specifying user name during activation 1-38
starting MATLAB 1-60
troubleshooting 3-6
starting MATLAB software
after activation is complete
on systems running Windows 1-40
startup folder 1-61
system requirements 1-74

T
troubleshooting

Index-4

Index

during installation 3-2


FLEXnet 3-6
starting MATLAB 3-6

standard installations 1-5 1-28


user name
selecting during activation 1-38

unassociated activation
defined 3-3
uninstall.exe 2-66
uninstalling 1-63
using uninstaller properties file 2-66
upgrading an installation
network installations 2-11 2-34

validating an installation
on systems running Windows operating
system 1-61
virus checking software
disabling during network installations 2-11 2-34
virus-checking software
turning off during installation 3-2

Index-5

You might also like