how to generate MATLAB code from Simulink model
조회 수: 511 (최근 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)
댓글 수: 4
답변 (4개)
Walter Roberson
2018년 10월 31일
There is no support for what you are doing.
You can use Simulink Real Time Explorer, using instrument panels for user interaction.
https://www.mathworks.com/help/xpc/export-explorer-configuration-as-standalone-executable.html
댓글 수: 0
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:
댓글 수: 0
puli
2022년 10월 5일
편집: Walter Roberson
2022년 10월 5일
image = imread('jump.jpg'); % read image
% 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:
댓글 수: 1
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!