Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the matlab compiler

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use the matlab compiler, the article is very detailed, has a certain reference value, interested friends must read it!

Matlab compiler

The function of matlab is very powerful, it can carry out mathematical calculation, simulation and data visualization and so on. Sometimes we want to separate the programming written by matlab from the matlab environment and run the executable software independently. Matlab's compiler can meet this requirement.

The matlab compiler takes the m file as input to produce applications or corresponding component software that can run independently. The resulting applications and component software are platform-related.

Applications that run independently:

C or C++ shared libraries: dynamic link libraries DLL in windows systems. These libraries can also be run on users' machines without matlab.

1. Compilation process

The matlab compiler adopts matlab component runtime (MCR) technology and fully supports matlab language. The process of generating executable files or linked libraries from m files using the matlab compiler is completely automatic. As long as the source program is an M file, the compilation command mcc can be used to compile the program.

Mcc-m * .m

The generated project name is * .prj and the generated executable file is * .exe

The command to run the executable file in matlab is:! * .exe

If you compile multiple M files, you must put the main M file first and the called M file after it

2.deploytool tool

In matlab, a graphical compilation tool deploytool is provided. After entering deploytool, the tool will be launched. You can create a new project file in the folder where the M file is located. When the command line tool mcc runs, it will generate the same project file with the suffix .prj by default.

Installation of 3.MCR

In order to be able to run executables produced by matlab compilation, MCR must be installed on the user's computer. MCR is stored by default in the root directory of matlab, toolbox\ complier\ deploy\ win64

The above is all the content of this article "how to use matlab Compiler". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report