You are on page 1of 161

MATLAB & Simulink Release 2011a

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


1
MathWorks . . 1-2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1: . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
3: . . . . . . . . . . . 1-9
4: MathWorks . . . . . . . . . . . . . . 1-10
5: . . . . . . . . . . . . . . 1-13
6: . . . . . . . . . . . . . . . . . . . . . 1-16
7: . . . . . . . . . . . . . . . . 1-17
8: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
9: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
10: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23
11: . . . . . . . . . . . . . . . . . . . . . . . . . 1-24

. . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26
1: . . . . . . . 1-26
2:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-27
3: MathWorks . . . . . . . . . . . . . . 1-29
4: . . . . . . . . . . . . 1-32
5: . . . . . . . . . . . . . . . . 1-34
6: . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-35
7: . . . . . . . . . . . . . . . . . 1-36
8: . . . . . . . . . . . . . . . . . . . . . 1-37

. . . . . . 1-39
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-39
1: . . . . . . . . . . . . . . . . . . . . . . . . . 1-41
2: . . . 1-42
3: . . . . . . . . . . . . . . . . . . . . . . 1-42
4: . . . . . . . . . . . . . . 1-43
5: . . . . . . . . . . . . . . . . . . . . . 1-46

v
6: . . . . . . . . . . . . . . . . 1-47
7: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-48
8: (
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-49
9: . . . . . . . 1-51
10: . . . . . . . . . . . . . . . . . . . . . . . . . 1-52
11: . . . . . . . . . . . . . . 1-53
12: . . . . . . . . . . . . . . 1-54
13: . . . . . . . . . . . . . . . . . . . . 1-57

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-58
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-58
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
MATLAB . . . . . . . . . . . . . . . . . . 1-59

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

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

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-73
Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-73
Macintosh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-74
Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-74


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-16
7: MATLAB . . . . 2-16
8: . . . . . . . . . . . . . . . . . . 2-17
9: . . . . . . . . . . . . . . 2-19
10: . . . . . . . . . . . . . . . 2-20
11: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22
12: . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
13: . . . 2-25

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-46
12: . . . . . . . . . . . . . . . . . . . . . . . . . 2-49

. . . . . . . . . . . . . . . . . . . . . . . . . 2-50
. . . . . . . . . . . . . . . . . . . . . . . . . . 2-50
Linux . . . . . . . . . . . . . . . . . . 2-52
Macintosh
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-53
. . . . . . . . . . . . . . . . . . . . 2-55

( ) . . . . . . . . . . 2-60
. . . . . . . . . . . . . . . 2-60
. . . . . . . . . . . . . . . . . . 2-60

vii

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

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

Index

viii
1


MathWorks

Microsoft Windows (32 64 )


Linux (32 64 )
Mac OS X

MathWorks (p.1-2)
(p.1-26)
(p.1-39)
(p.1-58)
MathWorks () (p.1-61)
(p.1-67)
(p.1-73)
1

MathWorks
...
(p.1-2)
1: (p.1-4)
2: (p.1-6)
3: (p.1-9)
4: MathWorks (p.1-10)
5: (p.1-13)
6: (p.1-16)
7: (p.1-17)
8: ( ) (p.1-18)
9: ( ) (p.1-20)
10: (p.1-23)
11: (p.1-24)

MathWorks



MathWorks


LEU (
) MathWorks


1-2
MathWorks

:



MATLAB

- Windows


- Linux MATLAB

matlab



- Macintosh
Macintosh
MathWorks
[Authenticate]

1-3
1


(p.1-39)
2 ,


MATLAB


MATLAB

:


10
9 MATLAB
9

1:

Windows DVD DVD


MathWorks Web

Macintosh DVD MathWorks
DVD MathWorks Web
DVD
DVD InstallForMacOSX

1-4
MathWorks

Linux DVD DVD


/path_to_dvd/install &

1-5
1

./install

2:


[
] []
MathWorks

[
] []

1-6
MathWorks

Select this option to install products (recommended).

Select this option if Click Next.


you do not have an
Internet connection.

1-7
1

[]
[]
MathWorks

1-8
MathWorks

3:
[]
[]


license.txt

Click Next. Select Yes.

1-9
1

4: MathWorks
MathWorks
[] MathWorks

MathWorks [MathWorks ]
[]

[ ]

MathWorks Web

If you have an account, enter your


e-mail 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.

1-10
MathWorks

MathWorks

MathWorks Web []
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-11
1

Follow these instructions.

Click Next.

1-12
MathWorks

5:
MathWorks
[]



MathWorks Web


[Unset]

MathWorks
[ ]
[]

MathWorks

1-13
1

License labels and options


Select a license. descriptions help identify licenses.

Select option Click Next.


and enter
Activation Key.



[ ]
[
]

1-14
MathWorks

Enter activation key.

Click Next.

1-15
1

6:
[ ] [] []
[]



[]

(
) []

Select Typical or Custom.

Click Next.

1-16
MathWorks

7:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2011a.app Applications

[]
[]

Specify name of installation folder.

Click Next.

1-17
1

8: (
)
[]




[]


Select the products you want to install.

Click Next.

MathWorks Web

1-18
MathWorks

DVD

[] []
DVD
[]

[ ]

[
]

[]

Choose to install product from DVD Provides information about


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

Select only Click Next. Clear selection Total download


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

1-19
1

9: (
)

Windows
Windows [ ]

[] MATLAB

MATLAB

[]

Click Next.

1-20
MathWorks

.ctfx MATLAB
.fig MATLAB Figure
.m MATLAB
.mat MATLAB
.mdl Simulink
.mdlp Simulink
.mex* MATLAB MEX
.mexw32 .mexw64
.mn MuPAD
.mu MuPAD
.muphlp MuPAD
.p MATLAB P
.ssc Simscape
.xvc MuPAD
.xvz MuPAD

Linux
Linux matlab mex

/usr/local/bin

[]

1-21
1

Select this option and specify


the location of symbolic links.

Click Next.

1-22
MathWorks

10:

[]
[]

Click Install.

1-23
1

DVD


MathWorks Web

[]

Click Next.

11:
[]


MathWorks
MathWorks
[]

1-24
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-26)

1-25
1


...
1: (p.1-26)
2: (p.1-27)
3: MathWorks (p.1-29)
4: (p.1-32)
5: (p.1-34)
6: (p.1-35)
7: (p.1-36)
8: (p.1-37)

1:

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

Windows matlabroot/bin/$ARCH activate_matlab.exe
matlabroot MATLAB
$ARCH matlabroot\bin\win32
matlabroot\bin\win32
Linux Macintosh matlabroot/bin
activate_matlab.sh
Windows [ ] [
] [MATLAB] [R2011a] [MATLAB R2011a
]

1-26

Macintosh MATLAB
MATLAB
(
control ) []

2:

"" MathWorks


MathWorks
[
]

Click Next.

1-27
1

MathWorks


[]
MathWork


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.


[]
[]

1-28

MathWorks

(p.3-2)

3: MathWorks

MathWorks []
MathWorks

MathWorks [MathWorks ]
[]

[ ]
[]



[]

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

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

Click Next. Enter Activation Enter first and last name.


Key.

MathWorks
[]
[]
MathWorks
[]

1-31
1

Follow these instructions.

Click Next.

4:

MathWorks
[]

1-32


MathWorks Web


[Unset]

MathWorks
[ ]
[]

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

5:


[ ]
[
]

[]

Click option to choose activation type.

Click Next.

1-34

6:

: []





MathWorks

ID
MathWorks


[
] []

[
]
[]
MathWorks

1-35
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-36

Verify all your activation data.

Click Activate.

8:
[]

1-37
1

Click Finish.

1-38

...
(p.1-39)
1: (p.1-41)
2: (p.1-42)
3: (p.1-42)
4: (p.1-43)
5: (p.1-46)
6: (p.1-47)
7: ( ) (p.1-48)
8: ( ) (p.1-49)
9: (p.1-51)
10: (p.1-52)
11: (p.1-53)
12: (p.1-54)
13: (p.1-57)






MathWorks Web


1-39
1

:



MATLAB

- Windows


- Linux MATLAB

matlab


- Macintosh
Macintosh
MathWorks
[Authenticate]

1-40

MathWorks
(p.1-2)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-41
1

./install

2:
[
] []

Select this option if you do not


have an Internet connection.

Click Next.

3:
[]
[]


license.txt

1-42

Click Next. Select Yes.

4:
[
]

[ ]
[]
MathWorks Web

[ ]
[]

1-43
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
(R2011a )
(
)

1-44

Perform this procedure to complete activation.

Click Finish.

1 []
Windows Linux []/[Print]

2 MathWorks Web

3
MathWorks

1-45
1

5:
[ ]
[]



[]

(
) []

Select Typical or Custom.

Click Next.

1-46

6:
MathWorks
[]

Macintosh MATLAB
MATLAB_R2011a.app Applications

[]
[]

Specify name of installation folder.

Click Next.

1-47
1

7: (
)
[]




[]

Select the products you want to install.

Click Next.

1-48

8: (
)

Windows
Windows [ ]

[] MATLAB

MATLAB

[]

Click Next.

1-49
1



.ctfx MATLAB
.fig MATLAB Figure
.m MATLAB
.mat MATLAB
.mdl Simulink
.mdlp Simulink
.mex* MATLAB MEX
.mexw32 .mexw64
.mn MuPAD
.mu MuPAD
.muphlp MuPAD
.p MATLAB P
.ssc Simscape
.xvc MuPAD
.xvz MuPAD

Linux
Linux matlab mex

/usr/local/bin

[]

1-50

Select this option and specify


the location of symbolic links.

Click Next.

9:

[]
[]

1-51
1

Click Install.

10:
[]


MathWorks
[]

[MATLAB
] [] (
)

1-52

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

Select this Click Next.


option to activate
without an
Internet connection.

12:


MathWorks Web
[ ]

[]

[ ]
[]

1-54

Specify the full path to


your license file here.

Click this option Click Next.


if you do not have
a license file.


[
]

ID
(: R2011a)
(
)

[]

1-55
1

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.

1-56

13:
[]

Click Finish.

1-57
1


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

MATLAB
MATLAB

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

- [ ]
MATLAB

- matlabroot/bin matlabroot MATLAB


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

1-58

- MATLAB

MATLAB MathWorks

MathWorks Web

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

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

MATLAB
MATLAB MATLAB
MATLAB

1-59
1


MATLAB MATLAB


MATLAB []

MATLAB MATLAB []
HTML

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

1-60
MathWorks ()

MathWorks ()
MathWorks

: 2


(p.1-67)

Windows
MathWorks

1 MATLAB

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

uninstall.exe



(p.1-64)

3 [] [
]

MATLAB MathWorks

1-61
1

Select products you want


to uninstall.

Click Uninstall. Click here 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\R2011a

1-62
MathWorks ()

username

4 ()
MATLAB

matlabroot/archives
[]

5 []

[] MATLAB


(p.1-67)

Click Finish.

1-63
1

: MATLAB
( ) (p.2-60)

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

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

1-67
1

MATLAB [] []

MATLAB matlabroot

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

Windows XP [] [
] [MATLAB] [R2011a] [MATLAB R2011a
]

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

...
Windows (p.1-73)
Macintosh (p.1-74)
Linux (p.1-74)

: MathWorks Web (www.mathworks.com)


FLEXnet 11.6.1
MathWorks MATLAB
MATLAB
FLEXnet
TCP/IP

Windows
32 64 MathWorks

RAM
Windows XP Service Pack 3 SSE2 1 GB 1,024 MB
Intel (MATLAB )
Windows XP x64 Edition AMD x86 ( 2048 MB
Service Pack 2 )
3 4 GB
Windows Server 2003 R2
Service Pack 2

Windows Vista Service Pack


1 2

Windows Server 2008 Service

1-73
1

32 64 MathWorks ()

RAM

Pack 2 R2

Windows 7

Macintosh
32 64 MathWorks

RAM

Mac OS X 10.5.5 Intel 1 GB 1,024 MB
(Leopard) Macintosh (MATLAB )
( 2048
Mac OS X 10.6.x Intel Core 2 MB )
(Snow Leopard) 3 4 GB

Linux
32 64 MathWorks

RAM

*: SSE2 1 GB 1,024 MB
Intel AMD x86 (MATLAB )
Debian 5.x ( 2048 MB

)
Red Hat Enterprise Linux 3 4 GB
5.x

SUSE Linux Enterprise


Desktop 11.x

1-74

32 64 MathWorks ()

RAM

Ubuntu 9.10 10.04


LTS

* MathWorks Linux
version 2.6 glibc version 2.5
MathWorks MathWorks

1-75
1

1-76
2

[] [ ]
MathWorks

Microsoft Windows (32 64 )


Linux (32 64 )
Mac OS X

MathWorks 1 ,

(p.2-2)
(p.2-4)
MathWorks (p.2-27)
(p.2-50)
( ) (p.2-60)
2

-
FLEXnet



FLEXnet


(p.2-4)
MathWorks -
MathWorks


MathWorks

MathWorks -
MathWorks



MathWorks (p.2-27)





( ) (p.2-60)

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-16)
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)
13: (p.2-25)

: MATLAB

MathWorks


2-4

MathWorks



MathWorks


MathWorks Web

ID MathWorks





(p.2-50)

:



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

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

[]
[]
MathWorks



(p.1-39)

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


e-mail 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.

MathWorks

2-15
2

6:
[]
[]

To install the license


manager, select Custom.

Click Next.

7: MATLAB
MathWorks
[]

Macintosh MATLAB
MATLAB_R2011a.app Applications

2-16

[]
[]

Specify name of installation folder.

Click Next.

8:


MathWorks
(
)

2-17
2

[] []

(p.3-5)

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.

13:
MathWorks

-

(p.2-19)

2-25
2

:


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-46)
12: (p.2-49)

MathWorks



MathWorks



MathWorks

2-27
2








(p.2-50)

:



MATLAB

- Windows


- Linux MATLAB

matlab


- Macintosh
Macintosh
MathWorks
[Authenticate]

2-28
MathWorks

( ) (p.2-60)

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

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

[]
[]
MathWorks

(p.1-39)

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


e-mail 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_R2011a.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

MATLAB

[]

2-43
2

Click Next.



.ctfx MATLAB
.fig MATLAB Figure
.m MATLAB
.mat MATLAB
.mdl Simulink
.mdlp Simulink
.mex* MATLAB MEX
.mexw32 .mexw64
.mn MuPAD

2-44
MathWorks

.mu MuPAD
.muphlp MuPAD
.p MATLAB P
.ssc Simscape
.xvc MuPAD
.xvz MuPAD

Linux
Linux matlab mex

/usr/local/bin

[]

2-45
2

Select this option and specify


the location of symbolic links.

Click Next.

11:

[]
[]

2-46
MathWorks

Click Install.





DVD


MathWorks Web

2-47
2

[]

Click Next.

2-48
MathWorks

12:
MathWorks []
[]

Click Finish.

2-49
2


...
(p.2-50)
Linux (p.2-52)
Macintosh
(p.2-53)
(p.2-55)


MATLAB
Windows Macintosh

(Linux
Linux
(p.2-52))



Windows (p.2-50)
Linux (p.2-51)
Macintosh (p.2-51)

Windows
Windows


Windows []
Windows [] [] [
] [] []

2-50

matlabroot\etc\win32 win64 MATLAB


lmtools.exe lmtools.exe
[Start/Stop/Reread]

Linux
Linux lmstart
(matlabroot/etc ) lmstart

: lmstart

(lmgrd)
su
lmgrd

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

username

Macintosh

1 Terminal (/Applications/Utilities)

2 MATLAB

cd /Applications/MATLAB_R2011a.app/etc

2-51
2

./lmgrd

: license.dat lmstart
lmstart

Linux
Linux

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

2-52

5 /etc/inittab

6 rc
32 64 Linux
5



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

2 StartupItems

3 matlabroot/etc/MATLABLmgr StartupItems

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

2-54

3 StartupParameters.plist StartupParameters_disabled.plist

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


(p.2-56)

LMTOOLS GUI (Windows )


Windows FLEXnet Publisher LMTOOLS
(GUI) LMTOOLS

2-55
2

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

Windows FLEXnet lmutil.exe

matlabroot\etc\$ARCH matlabroot
MATLAB $ARCH win32

DOS lmstat
lmutil

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

-a -c
lmutil

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

[Detecting lmgrd processes...]


License server status: 27000@ah-jcustomer
License File(s) on customerj: C:\Program Files\MATLAB\R2011a\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-57
2

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 1/4/2011 10:11

License server status: 27000@ah-jcustomer


License File(s) on customerj: /user/local/MATLAB/R2011a/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-58


lmdiag
lmdown
(lmgrd )
lmhostid ID
lmreread

: lmreread
FLEXnet
INCLUDE 15

lmstat

lmswitchr
lmver

2-59
2

( )
...
(p.2-60)
(p.2-60)


MATLAB
MathWorks



( )

: MATLAB ()
(p.1-64)

MathWorks DVD installer_input.txt



Windows

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

2-60
( )

2

destinationFolder=

destinationFolder=C:\Program Files\MATLAB\R2011a


fileInstallationKey=

4 -inputFile

Windows [] [
] []

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

Linux Macintosh

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

1 ,

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

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
3

3-10
Index

A
C
activating MATLAB software client installation procedure
choosing automatic or manual 1-27 network client 2-27
choosing manual option 1-53 current folder
completing off-network activation initial 1-59
on systems running Windows 1-57
confirming settings 1-36
D
for someone else 1-35
procedure 1-26 daemons
selecting a license during activation 1-32 opening access in security firewalls 3-6
starting activation application 1-24 1-27 starting 2-51
starting activation application after off-network deactivating MATLAB installations 1-67
installation 1-53 deactivation string
starting activation application after off-network deactivating without an Internet connection 1-67
installations 1-52 retrieving 1-70
starting the activation application 1-26 Designated Computer activation type
without a MathWorks Account 3-3 selecting during activation 1-34
activation application
starting 1-26 F
Activation Key
file associations
creating an account during network
specifying during installation 1-20
installations 2-12
File Installation Key
creating an account during standalone
entering for off-network installation 1-43
installations 1-11
obtaining 1-44
specifying 2-15 2-38
required for off-network installations 1-39
specifying during standalone installations 1-13 to
firewalls
1-14
opening access to license manager daemons 3-6
used to create MathWorks Account 1-30
FLEXnet
activation label
troubleshooting 3-6
viewing during activation 1-32
activation type
selecting during activation 1-34 H
Advanced Options button host ID
activating without a MathWorks Account 3-3 in License File 3-7

B I
boot scripts INCREMENT lines
use by installer 2-52 in License Files 3-7
initial current folder 1-59

Index-1
Index

install_input.txt 2-60 on systems running Windows 2-4 2-27


installation folder standard installation procedures 1-1
specifying 1-17 installing MATLAB software
specifying for off-network installations 1-47 finishing network installation
specifying in network installations 2-40 on systems running Windows 2-25 2-49
on systems running Windows 2-16
installation options
L
specifying file associations 1-20
specifying in network installations 1-49 2-43 License Files
installation procedure comment lines 3-7
network 2-4 getting the information you need to obtain 1-55
network client 2-27 INCREMENT lines 3-7
noninteractive 2-60 processing in installation
installation type on systems running Windows 2-19 2-43
choosing during standalone installations 1-16 required for off-network installations 1-39
choosing typical or custom 1-46 search path 3-7
choosing typical or custom in network installations specifying during activation after off-network
on systems running Windows 2-16 2-39 installation 1-54
installer specifying location in network installation 2-19
running noninteractively 2-60 2-42
starting 1-4 1-41 2-7 2-29 license manager
installer input file automating startup
specifying 2-60 on Macintosh systems 2-53
installing configuring in network installation 2-20
starting the installer manually 3-2 disabling 2-54
turning off virus-checking software during installing on server in network configurations 2-4
installation 3-2 re-enabling 2-55
installing MATLAB removing 2-55
choosing automatic or manual in network starting automatically at boot time 2-52
installations starting daemons 2-51
on systems running Windows 2-8 2-31 startup problem 2-51
choosing automatic or manual installation 1-6 troubleshooting 3-6
choosing manual for off-network using the LMTOOLS GUI 2-55
installations 1-42 utility programs 2-56
in network configurations 2-1 license numbers
in standalone environments 1-2 selecting during activation 1-32
preparing for installation in standalone license options
environments 1-2 viewing during activation 1-32
preparing for off-network installations 1-39 licenses
preparing to install in a network configuration deactivating 1-67

Index-2
Index

selecting during installation 1-13 creating during activation 1-30


selecting in network installations creating during installation 1-11
on systems running Windows 2-14 2-37 creating during network installations 2-12
validating creating for someone else during activation 1-35
on systems running Windows operating installing without an account 3-3
system 1-59 logging in 1-10
licensing logging in during activation 1-29
viewing the log file 3-6 logging in during network installations
LM_LICENSE_FILE environment variable 3-7 on systems running Windows 2-11 2-34
lmdiag MATLAB
diagnosing license checkout problems 2-59 getting started 1-59
lmdown starting 1-58
shutting down the license manager 2-59 MATLAB installation folder
lmhostid specifying 1-17
getting system host ID 2-59 specifying for off-network installations 1-47
lmlog.txt specifying in network installations 2-40
license manager log file 3-6 on systems running Windows 2-16
lmreread MATLABLmgr script 2-53
forcing license manager to reprocess the License MLM_LICENSE_FILE environment variable 3-7
File 2-59
lmstat
N
viewing license manager status 2-59
lmswitchr network client installation procedure
specifying the report log file 2-59 installing software on clients in network
LMTOOLS configurations 2-27
licensing utility GUI 2-55 network configurations
lmtools.exe installing MATLAB software 2-1
licensing utilities GUI 2-55 network installation procedure
lmutil.exe installing MATLAB in network configurations 2-4
license manager utilities 2-56 post-installation tasks 2-50
lmver
get FLEXnet version number 2-59 O
log files
operating system user name
license manager 3-6
specifying during activation 1-35
login name
overwriting an existing installation
specifying during activation 1-35
individual installation 1-4

M
P
MathWorks Account
passcode

Index-3
Index

encrypted in license file 3-7 on systems running Windows 2-17 2-41


port numbers on systems running Windows 1-18
opening access in security firewalls 3-6 setup.exe
preference files in noninteractive installations 2-60
removing 1-62 starting 3-2
products shortcut
downloading during standalone installations 1-18 MATLAB shortcut on desktop 1-58
selecting during installation 1-18 shortcuts
selecting for off-network installations specifying during installation 1-20
on systems running Windows 1-48 silent installations
selecting in network installations running without screen displays 2-60
on systems running Windows 2-17 2-41 software license agreement
proxy server reviewing 1-9
specifying 3-2 reviewing for off-network installations 1-42
specifying during activation 1-28 reviewing in network installations 2-10
proxy server settings on systems running Windows 2-33
setting 1-27 Standalone Named User activation type
selecting during activation 1-34
specifying user name during activation 1-35
R
starting MATLAB 1-58
removing a MATLAB installation 1-61 troubleshooting 3-6
using uninstaller properties file 1-64 starting MATLAB software
requirements. See system requirements after activation is complete
reviewing software license agreement 1-9 on systems running Windows 1-37
for network installations 2-10 startup folder 1-59
on systems running Windows 2-33 system requirements 1-73
on systems running Windows
off-network installations 1-42
T
troubleshooting
S
during installation 3-2
security firewalls FLEXnet 3-6
opening access to license manager daemons 3-6 starting MATLAB 3-6
selecting licenses 1-13
in network installations
on systems running Windows 2-14 2-37 U
selecting products unassociated activation
for off-network installations defined 3-3
on systems running Windows 1-48 uninstall.exe 1-64
in network installations uninstalling 1-61

Index-4
Index

using uninstaller properties file 1-64 on systems running Windows operating


upgrading an installation system 1-59
network installations 2-6 2-29 virus checking software
standard installations 1-4 disabling during network installations 2-6 2-29
user name virus-checking software
selecting during activation 1-35 turning off during installation 3-2

V
validating an installation

Index-5

You might also like