| MATLAB Function Reference | ![]() |
取得 source control system 的名稱。對 PVCS來說,可得到投射檔( project filename)
Graphical Interface
除了使用 cmopts之外,也可以在MATLAB的選單中選取File -> Preferences
-> General
-> Source Control
Syntax
cmopts
out = cmopts('DefaultConfigFile')
Description
cmopts
回傳你用Perferences所選擇的 source control
system,為下列四種的其中一種:(returns the name of the source control system you selected
using preferences, which is one of the following)
clearcase pvcs rcs sourcesafe
若還未選擇 source control system, cmopts 回傳
none
out = cmopts(' 這只能用在PVCS source control system上。用來回傳project
configuration file的名稱。DefaultConfigFile')
Specifying a Source Control System
For PVCS Only: Specifying the Project Configuration File
若使用 PVCS source control system時,必須先在 cmopts.m中指定
project configuration file 。 cmopts.m 檔的所在路徑為 $matlabroot\toolbox\local,其中 $matlabroot
是MATLAB安裝的目錄。
用 MATLAB 編輯器或其他編輯器開啓 cmopts.m 。以 % BEGIN CUSTOMIZATION SECTION
為開頭的格式來指定project configuration file。將包含完整路徑的投射檔(project file)檔名存到變數 'DefaultConfigFile'中。再儲存 cmopts.m.
Example - Specify the Project Configuration File for PVCS
若 project configuration file 名為 Projmgr.cfg,在 cmopts.m中加入下列此行。
DefaultConfigFile = 'c:\\PVCS\\PVCSPROJ\\Projmgr.prj\\Projmgr.cfg'
cmopts('DefaultConfigFile')
'c:\\PVCS\\PVCSPROJ\\Projmgr.prj\\Projmgr.cfg'
See Also
checkin, checkout, customverctrl
| closereq | colamd | ![]() |