已回答
Compilation error of simulink model, that calls a reference model twice
Hi @Ngoc Anh Nguyen, Embedded Coder does not support machine-parented data for code generation. Ther referenced model should al...

6 months 前 | 0

已回答
change the built-in synchronous machine models in Simulink from current into voltage sources
Hi @Zakarya, To view and modify the internal current‐source implementation of Simscape’s built-in Synchronous Machine blocks, y...

6 months 前 | 0

已回答
View real-time data on voltage, current, power, etc.
Hi @Héctor, To create a MATLAB App Designer application that processes real-time voltage and current data to compute and displa...

6 months 前 | 0

已回答
preprocessing steps for ultrasound image for segmentation
Hi @abid wazir To prepare fetal ultrasound images for segmentation in MATLAB, it's essential to preprocess the images to enhanc...

6 months 前 | 0

已回答
How to force Embedded Coder to unroll the generated for loop of "For Each Subsystem" in generated code?
Hi @SG, The code generator unrolls loops when the number of iterations is below the threshold set in "Loop unrolling threshold"...

6 months 前 | 0

已回答
C code generated for variable size model interface
Hi @vivek patel, To create a variable-sized input in Simulink, follow these steps: Configure the Inport Block: In the "Signal ...

7 months 前 | 0

已回答
Simulink coder: blocks value mapping into memory address
Hi @Francesco, To change Simulink parameters when running an executable without needing to recompile, you can modify the genera...

7 months 前 | 0

已回答
How can I simulate an active distribution system using the Monte Carlo method in MATLAB?
Hi @Aidin, To simulate an active distribution system using the Monte Carlo method in MATLAB, you can follow the below steps: M...

7 months 前 | 0

已回答
For code generation, integer arguments corresponding to the conversion character '%d' must be representable in the target hardware.
In MATLAB, numeric variables are by default stored as 64-bit (8-byte) double-precision floating-point values. This default behav...

7 months 前 | 0

已回答
C++ s-function with dynamically sized output, not dependent on input size
Hi @David You cannot change the output port dimensions from the “mdlOutputs” function. In Simulink, any changes to signal dime...

7 months 前 | 0

已回答
embeddedcoder error: "Too many input arguments" during C code generation
Hi @Andrea Verdicchio The "Too many input arguments" error during C code generation with Embedded Coder might be due to an unde...

7 months 前 | 0

已回答
Customizing Generated Code File Names in Simulink?
Hi @审言, You can use a “Custom token text” to modify the name of the header, source and data files generated during code generat...

7 months 前 | 0

已回答
Why is it that when I add an agent to simulink, I get an error indicating that I cannot change the properties
Hi @cm s, Assuming you are referring to the “mlx” file available with the official example from the following documentation pa...

7 months 前 | 0

已回答
codegen report.mldatx get *.m files
Hi @Tijn, The "coder.ReportInfo" properties contain information about code generation settings, input files, generated files, c...

7 months 前 | 0

已回答
Generating an Executable for Simulink Model using Embedded Coder: Setting Inputs and Displaying Outputs
Hi @ouss_zh, You can set the “Input” and “Output” parameters in the “Data Import/Export” pane of the Configuration Parameters...

7 months 前 | 0

已回答
Why wiener and median filter doesnt work after convert with embedded coder in c language?
Hi @Dubravka Lekovic The wiener and median filters that you created might not be working in C due to various reasons: Check ...

7 months 前 | 0

已回答
reward error during training
Hi @기범 In Reinforcement Learning (RL), the reward is a signal that guides the agent’s learning by providing feedback on its act...

8 months 前 | 0

已回答
Clustering method for electrical load forecasting
Hi @JASMIN OTHMAN, Here are some clustering methods with their advantages and how to implement them in MATLAB – Dynamic Tim...

8 months 前 | 0

已回答
Code generation assertion '-1 < fDTypeID' failed in 'b:\matlab\src\slcg_impl\export\include\slcg_impl\rtwgen\rtwsignal.hpp:207'
Hi The error "Code generation assertion '-1 < fDTypeID' failed" in MATLAB typically occurs due to data type mismatches within ...

8 months 前 | 0

已回答
Neural network for lab streaming layer emotiv
Hi @Richard, You can setup Lab Streaming Layer (LSL) for MATLAB by using the “MATLAB interface for liblsl” and resolve the EEG...

8 months 前 | 0

已回答
Is there any way to compute the number of trainable parameters from code in a deep CNN network?
Hi @krishna Chauhan, You can calculate the number of trainable parameters in your Convolutional Neural Network (CNN) model usi...

8 months 前 | 0

已回答
Extraneous codegen function definition without associated type definition
Hi @Andrew, The “RootIOFormat” parameter controls how root-level inputs and outputs are handled in the generated C code. It ca...

8 months 前 | 0

已回答
Converting a MATLAB builtin function to C using MATLAB coder
Hi @Juan D Guerrero, The “lowpass” function is not supported for code generation in MATLAB. You can use a different approach ...

8 months 前 | 0

已回答
how to Specify the arguments of imfilter in codegen function ? how to call it with the right parameters ?
Hi @Khaled Aldayeh, The “coder.ceval” function can only be used in the generated code. Therefore calls made to “coder.ceval” i...

8 months 前 | 0

已回答
Trying to capture the build summary using ert_make_rtw_hook
Hi Dawn, Consider the following approaches to capture the build summary: Wrap everything inside your “parfor” in a function....

8 months 前 | 0

已回答
Similink create 2 Initialize Procs
Hi @hoa phan, You can remove the zero-initialization code for internal data in the following ways: Open the Configuration Pa...

8 months 前 | 0

已回答
How to save to mat file sequentially using a loop and simout?
Hi Gustavo, The output from “sim” function is an object which should be stored in a cell array. Furthermore the “filename1(i)...

8 months 前 | 0

已回答
Constant Value Output from matlab Function Block in Simulink
Hi @Daniele Nanni, The “find” function may return an empty array if no elements satisfy the given condition. To resolve this er...

8 months 前 | 0

已回答
Simulink Code Generation Error: Array of Classes Initalization
Hi @MU, The errors you are receiving are because of the variables not being properly instantiated before using them. Please r...

9 months 前 | 0

已回答
Matlab Coder, set the size of a formal parameters array as indicated by another formal parameter
Hi @V Latorre, The dimension of “temp” in your code is fixed as “N” is statically defined to be 7. Therefore, when the C code...

9 months 前 | 0

加载更多