createDeploymentScript
説明
createDeploymentScript(
は、MATLAB® Compiler™ プロジェクト ファイル prjfile
,outputfile
)prjfile
から情報を取得し、outputfile
で定義された場所に MATLAB スクリプト ファイルを生成することにより、デプロイ スクリプト ファイルを作成します。
例
デプロイ スクリプトの作成
mymagic.prj
プロジェクト ファイルを使用して deployMyMagic
という名前のデプロイ スクリプトを作成します。
アプリケーション コンパイラなどの deploytool
アプリを使用して、MATLAB Compiler プロジェクトを作成します。メイン ファイルを追加し、mymagic.prj
としてプロジェクトを保存します。
createDeploymentScript
を使用して deployMyMagic
という名前のデプロイ スクリプトに mymagic.prj
からのコンパイラ設定を保存します。
createDeploymentScript("mymagic.prj", "deployMyMagic.m");
入力引数
prjfile
— MATLAB Compiler または MATLAB Compiler SDK™ プロジェクト ファイルへのパス
MATLAB Compiler または MATLAB Compiler SDK プロジェクト ファイルへのパス。文字ベクトルまたは string スカラーとして指定します。
例: "mymagic.prj"
データ型: char
| string
outputfile
— デプロイ スクリプトとして書き込むファイルへのパス
デプロイ スクリプトとして書き込むファイルへのパス。文字ベクトルまたは string スカラーとして指定します。ファイルが存在してはならず、拡張子 .m
を含めるか、拡張子なしにする必要があります。拡張子を指定しない場合、.m
が付けられます。絶対パスを指定しない場合、outputfile
は現在のフォルダーに保存されます。
例: "deployMyMagic.m"
データ型: char
| string
バージョン履歴
R2022b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)