Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Create a Deployable Archive for MATLAB Production Server

This example shows how to create a deployable archive for MATLAB® Production Server™ using a MATLAB function. You can then hand the generated archive to a system administrator who will deploy it into MATLAB Production Server.

To create a deployable archive:

  1. Create a MATLAB function addmatrix.m that adds two matrices.

    function a = addmatrix(a1, a2)
    
    a = a1 + a2;

    At the MATLAB command prompt, enter addmatrix(1,2).

    The output appears as follows:

    ans =
    
         3
  2. Open the Production Server Compiler app.

    1. On the toolstrip, select the Apps tab.

    2. Click the arrow on the far right of the tab to open the apps gallery.

    3. Click Production Server Compiler.

  3. In the Application Type section of the toolstrip, select Deployable Archive from the list.

    Note

    If the Application Type section of the toolstrip is collapsed, you can expand it by clicking the down arrow .

  4. Specify the MATLAB functions you want to deploy.

    1. In the Exported Functions section of the toolstrip, click the plus button.

      Note

      If the Exported Functions section of the toolstrip is collapsed, you can expand it by clicking the down arrow.

    2. Using the file explorer, locate and select the addmatrix.m file.

    3. Click Open to select the file and close the file explorer.

  5. Explore the main body of the project window.

    The project window is divided into the following areas:

    • Archive Information — Editable information about the deployed archive.

    • Files required for your archive to run — Additional files required by the archive. These files will be included in the generated archive. See Manage Required Files in Compiler Project.

    • Files packaged with the archive — Files that are packaged with your archive. These files include:

      • readme.txt

      • addmatrix.ctf file

      See Specify Files to Install with Application.

  6. Click Package.

    The Package window opens while the library is being generated.

  7. Select the Open output folder when process completes check box.

    When the deployment process is complete, a file explorer opens and displays the generated output.

  8. Verify the contents of the generated output:

    • for_redistribution — A folder containing the installer to redistribute the archive to the system administrator responsible for the MATLAB Production Server

    • for_testing — A folder containing the raw files generated by the compiler

    • PackagingLog.txt — A log file generated by the compiler.

  9. Click Close on the Package window.

To lean more about MATLAB Production Server see MATLAB Production Server

Was this topic helpful?