how to generate MATLAB code from Simulink model

354 次查看(过去 30 天)
Hi, I have a relatively complex simulink model, from which a MATLAB code must be generated. I want to use the generated code in App designer to develop an app and finally compile the app using `Application Compiler`, so that it can be used on every system without having MATLAB installed. The process can be summed up as the following: Simulink --> MATLAB code (.m) --> App Designer --> Application compiler (.exe)
  7 个评论
Walter Roberson
Walter Roberson 2024-6-30
  1. That looks like a Doit4Me
  2. It is confusing whether the work is to be done in Simulink or in MATLAB

请先登录,再进行评论。

回答(4 个)

Eric Sargent
Eric Sargent 2020-12-9
编辑:Eric Sargent 2020-12-9
As of R2020a you can use Simulink Compiler to compile your model and use it with your deployed / compiled App Designer app.
More information about Simulink Compiler can be found here:

Walter Roberson
Walter Roberson 2018-10-31
编辑:Walter Roberson 2024-6-30
There is no support for what you are doing.
You can use Simulink Real Time Explorer, using instrument panels for user interaction.

puli
puli 2022-10-5
编辑:Walter Roberson 2022-10-5
image = imread('jump.jpg'); % read image
Error using imread>get_full_filename
File "jump.jpg" does not exist.

Error in imread (line 372)
fullname = get_full_filename(filename);
% get image dimensions: an RGB image has three planes
% reshaping puts the RGB layers next to each other generating
% a two dimensional grayscale image
[height, width, planes] = size(image);
rgb = reshape(image, height, width * planes);
imagesc(rgb); % visualize RGB planes
colorbar on % display colorbar
r = image(:, :, 1); % red channel
g = image(:, :, 2); % green channel
b = image(:, :, 3); % blue channel
The result is:

EDMOND
EDMOND 2023-7-22
How to convert binary code to gray code in matlab

类别

Help CenterFile Exchange 中查找有关 Communications Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by