User`s guide
2 Getting Started with Database Toolbox
2-200
Deploying a Database Application with MATLAB Compiler
In this section...
“Create and Deploy a Database Application” on page 2-200
“About Driver Configurations” on page 2-200
If you want to share your MATLAB code with others in your organization, then you must
create a standalone database application using MATLAB Compiler™. After compiling
the database application, you can deploy it to the target machines. Use this procedure
and driver-specific information to create and deploy a database application.
Create and Deploy a Database Application
1
Write your database application code and save it as a MATLAB function in a file.
Do not save the code as a MATLAB script file. Write the code in function form for
database application deployment. Further, you must keep certain things in mind
as you write your database application code. For details, see “Write Deployable
MATLAB Code”.
2
Compile your database application with MATLAB Compiler using the standalone
application packaging process. For details, see “Package Standalone Application with
Application Compiler App”. The bitness of the MATLAB session used to create the
database application determines the bitness of the resulting database application.
• Compile the database application using a 32-bit MATLAB to create a 32-bit
database application.
• Compile the database application using a 64-bit MATLAB to create a 64-bit
database application.
3
The generated output from the compilation process contains a folder called
for_testing. Conduct a test on a target machine using the files found in this
folder.
4
After the test is successful, you can distribute the database application to the target
machines in your organization.
About Driver Configurations
Ensure the target machines have the correct driver configuration for your database
application. See the following driver-specific tasks to configure data sources and drivers.