answersLogoWhite

0

What are the application of matlab?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

To Compile or Not to Compile

There are several cases where compiling your code can be advantageous: If you want to distribute your code to people that have no Matlab installed, If you want to run a large number of Matlab jobs simultaneously on a computing cluster, you are usually limited by the number of licenses available. Working with a compiled standalone version, not requiring a Matlab license, provides a nice workaround. If your Matlab is using your institute's license server, it might happen that no licenses are available anymore. If you have your Matlab code and you are to run

ICTS/FOOCES

Compiler_2

several paparmatric studies, then a standalone version might bring help, since you are not dependent anymore on the availability of the licenses on the license server. This might require some minor re-thinking and re-writing of your program to let it behave as a general-purpose program (read some parameters, read the input data and start the calculations).

After creating your component with the MATLAB Compiler, you can distribute, or deploy, it to others so that they can use it on their machines, independent of MATLAB.

The deployment process requires that you: Package the necessary components depending on the type of generated application. Distribute them to your end user. Have the end users install them on their systems. During this phase of the installation process, the end users run MCRInstaller once on their target machine, that is, the machine where they will run the application or library. On Windows, MCRInstaller is a self-extracting executable that installs thenecessary components to run your application. On UNIX, MCRInstaller is a ZIP file.

The compiling/packaging process

Step 0:

Before using the Matlab Compiler for the first time, you must run the setup command on mbuild to configure your C/C++ compiler to work with the Matlab Compiler. (The Matlab Compiler requires a supported ANSI C or C++ compiler installed on your system.). This setup step is only to be performed once.

>> mbuild -setup

Please choose your compiler for building standalone MATLAB applications:

Would you like mbuild to locate installed compilers [y]/n?

Select a compiler:

[1] Lcc C version 2.4.1 in C:\PROGRAM FILES\MATLAB71\sys\lcc

ICTS/FOOCES

Compiler_3

[2] Microsoft Visual C/C++ version 7.1 in C:\Program Files\Microsoft Visual Studio .NET 2003

[0] None

Depending on the compilers installed on your system, you can select one. The Lcc compiler is installed by default when installing the Compiler Toolbox.

A very simple program is used to demonstrate the compiler/deploytool

Compiling the code

Remark: older version of the compiler might have problems when compiling script M-files Instead, they must be converted into function M-files. Normally, this is simply a case of wrapping the main section of code within a function. type deploytool to open the Deployment Tool window. The Deployment Tool opens as a dockable window in the MATLAB desktop, and a menu labeled Project is added to the MATLAB menu bar.

ICTS/FOOCES

Compiler_4

Create a new project:

o In the Deployment Tool toolbar, click the New Project icon.

o In the New Deployment Project dialog box, select (Windows) Standalone Applications, and enter the following settings (The Matlab Compiler deployment target "Windows Standalone Application" was new with Matlab R2007b. Older versions only had the "Standalone Application" option - the difference being the new Windows Standalone Application does not start a command console (dos box)):

 In the Name field, enter the project name.

 In the Location field, enter the name of your work directory

 Click OK.

ICTS/FOOCES

Compiler_5

The MATLAB Compiler displays the project folder in the Deployment Tool window. The folder contains three folders, which are empty.

o Drag the main routine of your Matlab program to the Main function folder.

o If other files are included in your programming project, drag then to the Other files folder.

In the screendump below, an example is shown with the main program (TSP_v1_func.m) and all the functions that are called by this main function are placed under 'Other files')

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the application of matlab?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the language used in matlab?

The language used in MATLAB is also called MATLAB. It is a high-level programming language that is designed for numerical and scientific computing. MATLAB was created to provide a simple and efficient way to solve complex mathematical problems and perform data analysis.


Wahi ka matlab?

Wahi ka matlab


Download free matlab solutions?

Matlab is a licensed software. But if we require Matlab material or documentation, we can get it from its official website.


What is the population of Matlab Upazila?

The population of Matlab Upazila is 445,607.


What is the meaning of matlab in Hindi?

matlab means meaning in hindi


Itself meaning in Hindi?

it ka matlab wah and self ka matlab apna, iska matlab hai wahapna


What is the meaning of Urdu word 'matlab'?

Matlab means "meaning". Example: "Iska matlab kya hai?" means "What is its meaning?".


Code for circular convolution matlab?

Please check the help files of the matlab circular convolution . Matlab already has a readymade function for it.


What does Matlab mean in Hindi?

MATLAB is a hindi word which when translated to english is MEANING. For example: Iska kya matlab hai? What is the meaning of this?


What is the difference between xilinx and matlab software?

Xilinx is a package. Matlab is a package and language. Xilinx requires a HDL program to execute the required logic. Matlab requires the Matlab program for that purpose. Xilinx is used for digital electronics. Matlab is used for signal processing.


Who invented MATLAB?

HYMAVATHI.B Invented the greatest MATLAB.


How do you solve central difference in Matlab?

Possibly the Program Stepping Operator by Matlab.