You are on page 1of 161

MATLAB & Simulink

R2013b

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

2
3
4
5
6
7
8

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

4
9
3
9
3
9

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 2011b)
MATLAB 7.14 (Release 2012a)
MATLAB 8.0 (Release 2012b)
MATLAB 8.1 (Release 2013a)
MATLAB 8.2 (Release 2013b)

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

1-2

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

1-3

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

1-5
1-5
1-7
1-8
1-11
1-12
1-16
1-19
1-20

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

1-30

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

1-31
1-31

1-21
1-24
1-26
1-28

1-32
1-34
1-37
1-39
1-40
1-41
1-42

vi

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

1-44
1-44
1-46
1-47
1-48
1-49
1-52
1-53

. . . .
1: . . . . . . . . . . . . . . . . . . . . . . . .
2: . . . . . . . . . . . . . . . . . .
3: . . . . . . . . . . . . . . . . . . . . . . . .

1-59
1-59
1-60
1-62

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

1-64
1-64
1-65
1-65
1-65
1-66

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

1-67
1-67
1-70
1-70

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

1-72

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Macintosh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-78
1-78
1-79
1-79

1-54
1-54
1-56
1-57

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

2-2
2-3
2-6

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

2-9
2-10
2-12

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

2-31

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

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-35
2-37
2-38
2-41
2-42
2-43
2-44
2-46
2-47
2-49
2-52

vii

. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
Linux . . . . . . . . . . . . . . . . . .
Macintosh
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .

2-53
2-53
2-54

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

2-63
2-63
2-63

. . . . . . . . . .

2-65

2-56
2-58

viii

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
MathWorks . . . . .

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

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

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

3-6
3-6
3-7

MathWorks

(p. 1-2)

(p. 1-3)

MathWorks (p. 1-5)

(p. 1-30)

(p. 1-31)

MathWorks (p. 1-44)

(p. 1-59)

(p. 1-64)

MathWorks () (p. 1-67)

(p. 1-72)

(p. 1-78)

MathWorks
MathWorks

Microsoft Windows (32 64 )

Linux (64 )

Mac OS X

MathWorks (p. 1-5)

(p. 1-31)

MathWorks (p. 1-44)

(p. 1-64)

MathWorks () (p. 1-67)

(p. 1-72)

(p. 1-78)

1-2

License Options
Activation Types

DVD

DVD
MATLAB

MathWorks
(p. 1-5)

DVD

mathworks.com
MATLAB

MathWorks
(p. 1-5)

MathWorks
(p. 1-44)

Set Up Group Member Licenses

Install Software for Group


Member Licenses
Activate Group Member
Licenses

1-3

(
)


MATLAB


(p. 2-9)


(p. 2-9)

FlexNet

Set Up Named User Licensing

1-4

Install the Software in a


Concurrent License

MathWorks

MathWorks
In this section...
(p. 1-5)
1: (p. 1-7)
2: [] (p. 1-8)
3: (p. 1-11)
4: MathWorks (p. 1-12)
5: (p. 1-16)
6: (p. 1-19)
7: (p. 1-20)
8: ( ) (p. 1-21)
9: ( ) (p. 1-24)
10: (p. 1-26)
11: (p. 1-28)

MathWorks

MathWorks
" "

1-5

MATLAB

Windows

Linux MATLAB

Macintosh
Macintosh
MathWorks
[Authenticate]

MathWorks (p. 1-44)

1-6

MathWorks

MATLAB


MATLAB

10
9 MATLAB
9

1:

DVD MathWorks Web

Windows

DVD DVD DVD

MathWorks Web

Macintosh

DVD DVD DVD


DVD
DVD InstallForMacOSX

1-7

MathWorks Web
InstallForMacOSX

Linux

DVD DVD DVD

/path_to_dvd/install &

DVD

DVD
mount -o exec

/media/cdrom0

MathWorks Web

./install

2: []
[] ()
[] MathWorks

1-8

MathWorks

1-9

: Windows

[]
[]
MathWorks

1-10

MathWorks

3:
[] [
]

1-11

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
] " "
MathWorks
Web

1-12

MathWorks

MathWorks


MathWorks Web
[]
MathWorks

1-13

: MathWorks
[]
[]
MathWorks
[]

1-14

MathWorks

1-15

5:
MathWorks
[]

()
MathWorks Web


[Unset]

MathWorks
[ ]
[] "
"

MathWorks

1-16

MathWorks

[ ]
[]

1-17

1-18

MathWorks

6:
[ ] [] []
[]


[]

[]

( )

1-19

7:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2013b.app

[]
[]

1-20

MathWorks

8: ( )
[]



[]

1-21

MathWorks Web

DVD

[] []
DVD
[]

[ ]

[
]
[]

1-22

MathWorks

1-23

9: (
)

Windows
Windows [ ] []
MATLAB
[]

Linux
Linux matlab mex

/usr/local/bin
[]

1-24

MathWorks

1-25

10:

[]
[]

[]

1-26

MathWorks

[]

1-27

11:
[]

MathWorks
[]
[MATLAB
] []

1-28

MathWorks


(p. 1-31)

1-29

MATLAB


MATLAB

10
9 MATLAB
9

1-30

In this section...
1: (p. 1-31)
2: (p. 1-32)
3: MathWorks (p. 1-34)
4: (p. 1-37)
5: (p. 1-39)
6: (p. 1-40)
7: (p. 1-41)
8: (p. 1-42)

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

1-31

Macintosh MATLAB
MATLAB
( Ctrl
) []

2:

"" MathWorks


MathWorks
[
]

1-32

MathWorks

[
]
MathWorks
[
]

1-33


: Windows

[]
[]

MathWorks

3: MathWorks
:

MathWorks []
MathWorks

MathWorks []
[]
[
] []



[]

1-34

MathWorks



MathWorks
Web []

1-35

: MathWorks
[]
[]
MathWorks
[]

1-36

4:
:


MathWorks
[]

1-37

()
MathWorks Web


[Unset]

MathWorks
[ ]
[] "
"

1-38

5:
:


[ ]
[
]
[]

1-39

6:
: []



[
]
MathWorks

ID
MathWorks


[
] []

[
]
[]
MathWorks

1-40

7:
[]
MathWorks
( [ ]
)

MathWorks
MathWorks

1-41

8:
[]

1-42

1-43

MathWorks
In this section...
(p. 1-44)
1: (p. 1-46)
2: (p. 1-47)
3: (p. 1-48)
4: (p. 1-49)
5: (p. 1-52)
6: (p. 1-53)
7: ( ) (p. 1-54)
8: ( ) (p. 1-54)
9: (p. 1-56)
10: (p. 1-57)



MathWorks Web

1-44

MathWorks


MATLAB

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

1-45

MathWorks
(p. 1-5)MathWorks

(p. 2-9)

1:

DVD MathWorks Web

1-46

Windows

DVD DVD DVD

MathWorks Web

Macintosh

DVD DVD DVD


DVD
DVD InstallForMacOSX

MathWorks Web
InstallForMacOSX

Linux

MathWorks

DVD DVD DVD

/path_to_dvd/install &

DVD

DVD
mount -o exec

/media/cdrom0

MathWorks Web

./install

2:
[
] []

1-47

3:
[] [
]

1-48

MathWorks

4:
[
]

[
] []
MathWorks Web

[ ]
[]

1-49


[]
MathWorks Web (License Center)

1-50

ID

(: R2013b)

(
)

MathWorks


1 []

Windows Linux []/[Print]

2 MathWorks Web

MathWorks

4

1-51

5:
[ ] [] []
[]


[]

[]

( )

1-52

MathWorks

6:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2013b.app

[]
[]

1-53

7: ( )
[]



[]

8: (
)

1-54

MathWorks

Windows
Windows [ ] []
MATLAB
[]

Linux
Linux matlab mex

/usr/local/bin
[]

1-55

9:

[]
[]

1-56

MathWorks

10:
[]

MathWorks
[]
[MATLAB
] []

1-57

1-58

In this section...
1: (p. 1-59)
2: (p. 1-60)
3: (p. 1-62)

1:
MathWorks

[
] []

1-59

2:


MathWorks Web
[ ]

[]
[
] []



[ ]

1-60

ID

(: R2013b)

(
)

[]

MathWorks Web
MathWorks

[]

:
MATLAB

1-61

3:
[]

1-62

1-63

In this section...
MATLAB (p. 1-64)
(p. 1-65)
MATLAB (p. 1-65)
MATLAB (p. 1-65)
MATLAB (p. 1-66)

MATLAB
MATLAB

1-64

Windows

Windows 8 Windows
[MATLAB R2013b]

Windows 7 Windows []
[MATLAB R2013b]

Windows XP Windows []
[] [MATLAB] [R2013b] [MATLAB
R2013b]

MATLAB

matlabroot/bin matlabroot MATLAB


matlab.exe

Linux

matlab [
]
matlabroot/bin/matlab
matlabroot MATLAB

Macintosh

MATLAB

MATLAB MathWorks


MathWorks Web

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

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

1-65

MATLAB
MATLAB Notebook notebook -setup MATLAB
mex -setup

MATLAB
MATLAB MATLAB
MATLAB

1-66

MATLAB

MATLAB

[]

MATLAB

[] [] [
] []
HTML

MathWorks Web (www.mathworks.co.jp)


[]

MathWorks ()

MathWorks ()
MathWorks

: 2

(p. 1-72)

Windows
MathWorks ()

1 MATLAB
2

Windows 7 [] [
] [ ] []
[MATLAB R2013b]

Windows XP [] [
] [ ] []
[MATLAB R2013b] []

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

uninstall.exe


(p. 2-65)
3 [] [

]
MATLAB MathWorks

1-67

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

1-68

MathWorks ()

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

username MATLAB
4 ()

MATLAB

matlabroot/archives
[]
5 []


[] MATLAB


(p. 1-72)

1-69

Linux
:

(p. 1-72)

1 MATLAB
2 Linux

rm -rf matlabroot

matlabroot MATLAB

Macintosh
: MATLAB

(p. 1-72)
MATLAB
1 Macintosh

MATLAB

2 MATLAB MATLAB lmdown


3 MATLAB

MATLAB_R2013b.app

1-70

MathWorks ()

4 MATLAB [Finder] [

1-71

MathWorks

2
MathWorks

MathWorks

MathWorks Web

: 2

MathWorks
() (p. 1-67)

1-72

MATLAB [] []

MATLAB matlabroot

Windows
matlabroot\uninstall\bin\win64\deactivate_matlab.exe
Linux
matlabroot/bin/deactivate_matlab.sh
Macintosh
/Applications/MATLAB_R2013b.app/bin/deactivate_matlab.sh

Windows 7 []
[MATLAB]

Windows XP [] [
] [MATLAB] [R2013b] [MATLAB R2013b
]

2 []

MATLAB

1-73

[]
[OK]
[MathWorks ]

3 []

MathWorks

1-74

4 [OK]

MathWorks
[
] [OK] [MathWorks
]

1-75

MathWorks
[]

MathWorks Web

[OK] [MathWorks
]
Deactivation string.

Click OK.

5 [MathWorks

[] [
]

1-76

1-77

In this section...
Windows (p. 1-78)
Macintosh (p. 1-79)
Linux (p. 1-79)

: MathWorks Web (www.mathworks.com)

Windows

MathWorks
FlexNet 11.11
MATLAB
MATLAB FlexNet

TCP/IP

32 /64 MATLAB/Simulink

RAM

Windows 8

SSE2
Intel
AMD x86

1 GB
(MATLAB )

1,024 MB

Windows 7 Service
Pack 1
Windows Vista Service Pack 2
Windows XP Service Pack 3
Windows XP x64 Edition
Service Pack 2
Windows Server 2008 Service
Pack 2 R2

1-78

3 4 GB

( 2,048 MB
)

32 /64 MATLAB/Simulink ()

RAM

Windows Server 2003 R2


Service Pack 2

Macintosh
64 MATLAB/Simulink

Mac OS X 10.8
(Mountain Lion)
Mac OS X 10.7
(Lion)

RAM

Intel Core 2

Intel
Macintosh

1 GB
(MATLAB )

1,024 MB

3 4 GB

( 2,048
MB )

Linux
64 MATLAB/Simulink

RAM

*:

SSE2
Intel AMD x86

1 GB
(MATLAB )

1,024 MB

Ubuntu 10.04 LTS11.04


11.10
Red Hat Enterprise Linux
5.x 6.x

3 4 GB

( 2,048 MB
)

SUSE Linux Enterprise


Desktop 11.x

1-79

64 MATLAB/Simulink ()

RAM

Debian 5.x
* MathWorks
Linux
2.6 glibc 2.5 MathWorks

MathWorks

1-80

[] [ ]
MathWorks

Microsoft Windows (32 64 )

Linux (64 )

Mac OS X

(p. 2-2)

(p. 2-9)

(p. 2-31)

MathWorks
(p. 2-32)

(p. 2-53)

( ) (p. 2-63)

(p. 2-65)

In this section...
(p. 2-3)
(p. 2-6)
MathWorks

MathWorks MATLAB

MATLAB
MATLAB
2

MathWorks

MathWorks
Install the Software in a Concurrent License

:

MathWorks
ID

2-2

MathWorks Flexera Software, Inc


FlexNet Publisher

MathWorks
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-63)

:

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


In this section...
(p. 2-10)
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

MATLAB

: R2013b
R2013b R2013b

R2013b
MATLAB

2-9

MathWorks

MathWorks


MathWorks


MathWorks Web

ID MathWorks



(p. 2-53)


MATLAB

2-10

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

1 MathWorks

MathWorks (p. 2-32)

MATLAB

MATLAB
MATLAB

2-11

:


2

1:

DVD MathWorks Web

Windows

DVD DVD DVD

MathWorks Web

Macintosh

DVD DVD DVD


DVD
DVD InstallForMacOSX

MathWorks Web
InstallForMacOSX

Linux

2-12

DVD DVD DVD

/path_to_dvd/install &

DVD

DVD
mount -o exec

/media/cdrom0

MathWorks Web

./install

2:

[
] []
MathWorks

[
] []

2-13

2-14

: Windows

[]
[]
MathWorks

MathWorks (p. 1-44)

3:
[] [
]

2-15

4: MathWorks
:
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
] " "
MathWorks
Web

2-16

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_R2013b.app

[]
[]

2-21

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

[]

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

In this section...
(p. 2-32)
1: (p. 2-34)
2: (p. 2-35)
3: (p. 2-37)
4: MathWorks (p. 2-38)
5: (p. 2-41)
6: (p. 2-42)
7: (p. 2-43)
8: (p. 2-44)
9: (p. 2-46)
10: ( ) (p. 2-47)
11: (p. 2-49)
12: (p. 2-52)

MathWorks

MathWorks

2-32

MathWorks

MathWorks


(p. 2-53)


MATLAB

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

2-33

( ) (p. 2-63)

MATLAB


MATLAB
MATLAB

1:

DVD MathWorks Web

Windows

2-34

DVD DVD DVD

MathWorks

MathWorks Web

Macintosh

DVD DVD DVD


DVD
DVD InstallForMacOSX

MathWorks Web
InstallForMacOSX

Linux

DVD DVD DVD

/path_to_dvd/install &

DVD

DVD
mount -o exec

/media/cdrom0

MathWorks Web

./install

2:

[
] []

2-35

MathWorks

[
] []

2-36

MathWorks

: Windows

[]
[]
MathWorks

MathWorks (p. 1-44)

3:
[] [
]

2-37

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
] " "
MathWorks
Web

2-38

MathWorks

MathWorks


MathWorks Web
[]
MathWorks

2-39

: MathWorks
[]
[]
MathWorks
[]

2-40

MathWorks

5:
:

MathWorks
[]

2-41

()
MathWorks Web


[Unset]

[
]

6:
:
[]

2-42

MathWorks

[ ] [] []
[]


[]

[]

( )

7:
MathWorks
[]

2-43

Macintosh MATLAB
MATLAB_R2013b.app

[]
[]

8:
[]

2-44

MathWorks

[] []

2-45

9:

[]


2-46

SERVER DAEMON

license.dat

matlabroot/etc
matlabroot MATLAB

MathWorks

network.lic
MATLAB \licenses

SERVER INCREMENT DAEMON


USE_SERVER

10: (
)

Windows
Windows [ ] []
MATLAB
[]

2-47

Linux
Linux matlab mex

/usr/local/bin
[]

2-48

MathWorks

11:

[]
[]

2-49

[]

2-50

MathWorks

2-51

12:
MathWorks []
[]

2-52


In this section...
(p. 2-53)
Linux (p. 2-54)
Macintosh
(p. 2-56)
(p. 2-58)

(p. 2-53)


MATLAB
Windows Macintosh

(Linux
Linux
(p. 2-54))

Windows (p. 2-54)

Linux Macintosh (p. 2-54)

2-53

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_R2013b.app/etc

: lmstart

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

username

Linux
Linux

2-54

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

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

64 Linux
rc<runlevel>

2-55

Debian

cd /etc/rc<runlevel>.d;
ln -s ../init.d/flexnet S90flexnet

Red Hat
Fedora Core

cd /etc/rc.d/rc<runlevel>.d;
ln -s ../init.d/flexnet S90flexnet

SUSE

cd /etc/init.d/rc<runlevel>.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-56

4 /etc/MATLABlmgr config_lm.sh

(/Applications/Utilities
)
cd /Library/StartupItems/MATLABLmgr
./config_lm.sh
5 MathWorks

MathWorks /Applications/MATLAB_R2013b

/Applications/MATLAB_R2013b
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-57

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

/Library/StartupItems/MATLABLmgr

[] MATLABLmgr

3 MATLABLmgr [Finder] [


FlexNet

MATLAB PDF
(matlabroot\etc\LicenseAdministration.pdf)

LMTOOLS (Windows ) (p. 2-58)

(p. 2-59)

LMTOOLS (Windows )
Windows FlexNet Publisher LMTOOLS
LMTOOLS

LMTOOLS

1 LMTOOLS matlabroot\etc\$ARCH lmtools.exe

matlabroot MATLAB

2-58

$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-59

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

-a -c
lmutil

lmutil - Copyright (c) 1989-2010 Flexera Software Inc. All Rights Reserved.
Flexible License Manager status on Tue 11/5/2013 10:11
[Detecting lmgrd processes...]
License server status: 27000@ah-jcustomer
License File(s) on customerj: C:\Program Files\MATLAB\R2013b\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-60

-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/5/2013 10:11
License server status: 27000@ah-jcustomer
License File(s) on customerj: /user/local/MATLAB/R2013b/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-61

lmdiag

lmdown


(lmgrd )

lmhostid

ID

lmreread



: lmreread
FlexNet
INCLUDE 15

2-62

lmstat

lmswitchr

lmver

( )

( )
In this section...
(p. 2-63)
(p. 2-63)

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



( )

installer_input.txt

MathWorks DVD

( C:\Users\user\AppData\Local\Temp\mathworks_downloads)

2-63

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

destinationFolder=

destinationFolder=C:\Program Files\MATLAB\R2013b


fileInstallationKey=

3
4 -inputFile


Windows [] [
] []

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

Linux Macintosh

2-64


: MATLAB
( ) (p. 2-63)

MATLAB uninstall
uninstaller_input.txt
Windows

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


2

outputFile=

MATLAB


mode=automated []

2-65

4 -inputFile

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

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

2-66

MathWorks

(p. 3-2)

(p. 3-6)

MathWorks
MATLAB

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

In this section...
(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-58)

1 MathWorks Web

(www.mathworks.com/support/install)
2 [ ] []

3 [] [

Select an error.

3-6


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



27000


DAEMON port= <>

3-7

You might also like