Vous êtes sur la page 1sur 153

MATLAB & Simulink

Release 2012a

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 4
2011 9
2012 3

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)

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: . . . . . . .
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3: MathWorks . . . . . . . . . . . . . .
4: . . . . . . . . . . . .
5: . . . . . . . . . . . . . . . .
6: . . . . . . . . . . . . . . . . . . . . . . . . . . .
7: . . . . . . . . . . . . . . . . .
8: . . . . . . . . . . . . . . . . . . . . .

1-28
1-28

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

1-41
1-41
1-43
1-44

1-29
1-31
1-34
1-36
1-37
1-38
1-39

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

1-45
1-45
1-48
1-49

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

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

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

1-62
1-62
1-65
1-65

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

1-67

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

1-73

1-50
1-51
1-52
1-53
1-54
1-55
1-57

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

2-2

. . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1: . . . . . . . . . . . . . . . . . . . . . . . . .

2-4
2-4
2-7

vi

2:

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

2-8
2-10
2-11
2-14
2-15
2-16
2-17
2-19
2-20
2-22
2-25

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

2-26

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

2-27
2-27
2-29
2-31
2-33
2-34
2-37
2-39
2-40
2-41
2-42
2-43
2-45
2-48

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

2-49
2-49
2-50

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

2-59
2-59

2-52
2-54

vii

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

2-59

. . . . . . . . . .

2-61

viii

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

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

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

3-6
3-6
3-7

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)

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

MATLAB

1-4

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

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

Linux DVD DVD

/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

Enter your e-mail address.

Click Next.

Create a password for your account.

Enter Activation Key.

Enter first name and last name.

: MathWorks
[]
[]
MathWorks
[]

1-13

Follow these instructions.

Click Next.

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

Enter activation key.

Click Next.

1-17

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

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

Choose to install product from DVD


or download version from Web.

Select only
latest version
of all products.

1-22

Click Next.

Provides information about


the size of the download.

Total download
size.

Clear selection
of all product
downloads.

MathWorks

9: (
)

Windows
Windows [ ] []
MATLAB

[]

Click Next.

Linux
Linux matlab mex

/usr/local/bin

1-23

[]
Select this option and specify
the location of symbolic links.

Click Next.

1-24

MathWorks

10:

[]
[]

Click Install.

1-25

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: (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

1-28

Macintosh MATLAB
MATLAB

( Ctrl
) []

2:

"" MathWorks


MathWorks
[
]

Click Next.

MathWorks

1-29

[]
MathWorks


If you have an Internet connection,
leave this option selected.

Click Next.
If you do not
have an Internet
connection, select
this option.

To enter proxy server


settings or choose
other options.


: Windows

1-30

[]
[]

MathWorks

(p. 3-2)

3: MathWorks
:

MathWorks []
MathWorks

MathWorks []
[]
[
] []



[]

1-31

If you have an account, enter your


e-mail address and password.

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

If you have your License File,


specify the full path here.

MathWorks



MathWorks
Web []

1-32

Enter e-mail address.

Click Next.

Create a password for your account.

Enter Activation
Key.

Enter first and last name.

: MathWorks
[]
[]
MathWorks
[]

1-33

Follow these instructions.

Click Next.

4:
:


MathWorks
[]

1-34


MathWorks Web


[Unset]

MathWorks
[ ]
[]


License labels and license option
descriptions help identify licenses.

Select a license.

Click Next.

Enter Activation Key, to identify


a license not shown.

1-35

5:
:


[ ]
[
]
[]
Click option to choose activation type.

Click Next.

1-36

6:
: []





MathWorks

ID
MathWorks


[
] []

[
]
[]
MathWorks

1-37

Leave this option selected


if you will use the software.

Specify the user name of the


person who will use the
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

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

MATLAB

1-42

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

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



./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

[ ]
[]

Enter File Installation Key here.

Click Next.
Select this option to
gather the information
needed to get a File
Installation Key.


[]
MathWorks Web (License Center)

1-46

ID

(: R2012a)

(
)
Perform this procedure to complete activation.

Click Finish.


1 []

Windows Linux []/[Print]

2 MathWorks Web

MathWorks

1-47

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

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

[]
Select this option and specify
the location of symbolic links.

Click Next.

9:

[]
[]

1-52

Click Install.

10:
[]

MathWorks
[]
[MATLAB
] [] (
)

1-53

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

Click Next.
Select this
option to activate
without an
Internet connection.

12:


MathWorks Web
[ ]

[]
[ ]
[]

1-55

Specify the full path to


your license file here.

Click this option


if you do not have
a license file.

Click Next.



[]

ID

(: R2012a)

(
)

[]

1-56

MathWorks Web
(License Center) MathWorks

[]

:
MATLAB
Note the information
you need for activation.

To save this
information,
click Print.

To exit the
activation process,
click Close.

13:
[]

1-57

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

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

MathWorks ()
MathWorks

: 2

(p. 1-67)

Windows
MathWorks ()

1 MATLAB
2

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


products in the list.

Select products you want


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

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

3 MATLAB

Applications MATLAB_R2011a.app

4 MATLAB [Finder] [

1-66

MathWorks

2
MathWorks

MathWorks

MathWorks Web

: 2

MathWorks
() (p. 1-62)

1-67

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

3 []

MathWorks

4 [OK]

MathWorks
[
] [OK] [MathWorks
]

Click OK.

MathWorks

1-70

[]

MathWorks Web

[OK] [MathWorks
]
Deactivation string.

Click OK.

5 [MathWorks

[] [
]

1-71

Select another license


to deactivate.

Click Close.

1-72

Status of license.

: MathWorks Web (www.mathworks.com)

1-73

1-74

[] [ ]
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)

-
FLEXnet



FLEXnet


(p. 2-4)

MathWorks -
MathWorks


MathWorks

MathWorks -
MathWorks



MathWorks (p. 2-27)


(
) (p. 2-59)

2-2

:

MathWorks Web

2-3


...
(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

2-4

MathWorks

MathWorks


MathWorks


MathWorks Web

ID MathWorks



(p. 2-49)

MATLAB

Windows

Linux MATLAB

matlab

Macintosh
Macintosh

2-5

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



./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

: Windows

[]
[]
MathWorks

(p. 1-41)

3:
[]
[]

license.txt

2-10

Click Next.

Select Yes.

4: MathWorks
:
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[
]
MathWorks Web

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

2-12

Enter your e-mail address.

Click Next.

Create a password for your account.

Enter Activation Key.

Enter first name and last name.

: MathWorks
[]
[]
MathWorks
[]

2-13

Follow these instructions.

Click Next.

5:
MathWorks
[]

2-14


MathWorks Web

[Unset]

MathWorks
[ ]
[] "
"
Select the
network license...

...or enter Activation Key for


network license.

Click Next.

6:
[]
[]

2-15

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

Select the license manager.

Clear all other


products.

2-18

Click Next.

9:

[]
MathWorks Web

Specify full path of License File.

Click Next.


MathWorks Web

license.dat MATLAB
\etc

2-19

SERVER DAEMON SERVER (


) DAEMON

matlabroot/etc matlabroot
MATLAB

10:

Windows
MathWorks
Windows

[]

:
[
]

2-20

Choose whether to configure license


manager as a service.

Click here to review


configuration settings.

Click Next.

Macintosh

[Next]

2-21

Choose whether to configure the license


manager to start automatically at startup time.

Enter the user name that owns


the license manager process.

Click Next.

11:

[]
[]

2-22

Click Install.

[]

2-23

Click Next.

2-24

12:
[]
[]

MATLAB

Click Finish.

2-25

MathWorks

-

(p. 2-19)

MathWorks

-
MathWorks
DVD


MathWorks

MathWorks

2-26

-
MathWorks (p. 2-27)

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

MathWorks


(p. 2-49)

MATLAB

2-28

Windows

Linux MATLAB

matlab

Macintosh
Macintosh
MathWorks
[Authenticate]

MathWorks

( ) (p. 2-59)

MATLAB


MATLAB
MATLAB

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks DVD


MathWorks Web DVD

2-29

DVD
InstallForMacOSX

Linux DVD DVD

/path_to_dvd/install &

2-30

MathWorks



./install

DVD

DVD
mount -o exec

/media/cdrom0

2:

[
] []
MathWorks

[
] []

2-31

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

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
to create an
account, select
this option.

Click Next.

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

MathWorks


MathWorks Web
[]
MathWorks

2-35

Enter your e-mail address.

Click Next.

Create a password for your account.

Enter Activation Key.

Enter first name and last name.

: MathWorks
[]
[]
MathWorks
[]

2-36

MathWorks

Follow these instructions.

Click Next.

5:
:

MathWorks
[]

2-37


MathWorks Web


[Unset]

[
]

Select the
network license...

...or enter Activation Key for


network license.

Click Next.

2-38

MathWorks

6:
:
[]
[ ]
[]



[]


(
) []
Select Typical or Custom.

Click Next.

2-39

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
products you
want to install.

Click Next.

2-41

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

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

Click Install.

2-46

DVD


MathWorks Web

MathWorks

[]

Click Next.

2-47

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

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

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

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

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

lmdiag

lmdown


(lmgrd )

lmhostid

ID

lmreread



: lmreread
FLEXnet
INCLUDE 15

2-58

lmstat

lmswitchr

lmver

( )

( )
...
(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

destinationFolder=

destinationFolder=C:\Program Files\MATLAB\R2012a


fileInstallationKey=

3
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 []

3
4 -inputFile

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

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

2-61

2-62

MathWorks

(p. 3-2)

(p. 3-6)

MathWorks
MATLAB

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

...
(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

MathWorks

2 MathWorks DVD DVD

3 [] [

3-3

1

4 []

[MATLAB ]
[]
5 [MathWorks ]

[]

[] []
[]
[OK]

Select this option to activate


without an account.

3-4

Click OK.

[MathWorks ]
[]

6 []

[]

: [
]

7 []

[] []

[OK]
[]

3-5

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

# 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

MATLAB \licenses license.dat


.lic

3-9

Vous aimerez peut-être aussi