Answered
design(fdesign.lowpass()) vs dsp.Filter(firpm())
Hi Axel, Designing a strict low-pass filter (LPF) with specifications like a 0.5 Hz passband, 1 Hz stopband, 0.01 passband ripp...

6 months ago | 0

Answered
Terminate Code Generation Process
Hi David, You could encapsulate your scripts in try-catch blocks. Threfore, if the script errors out, you can debug it easily b...

6 months ago | 0

Answered
How to create a component reference in the system composer from a simscape component
Hello Flavio, It is possible to create a simscape component that can be referencedn inside a System Composer application and h...

6 months ago | 0

Answered
How to classify a folder of images?
Hi Mohammed, You can use the classification learner app to build a machine learning model to identify the currency denominatio...

6 months ago | 0

Answered
Polyspace unbalanced/nested critical sections
Hello Mario, Polyspace Bug-Finder would be a more appropriate tool for analysing critical sections of your code for unbalanced...

6 months ago | 0

Answered
How to Fix Polyspace CodeProver Orange Overflow errors
Hi Dinesh, The unexpected orange integer overflow warning can be due to the below two reasons: Shared Variable: If you are p...

6 months ago | 0

Answered
How to create custom data type acronyms in code generation
Hi Marek, Unfortunately, Simulink Coder does not provide a direct way to customize the $A acronym for data types when using rep...

6 months ago | 0

| accepted

Answered
With Simulink Embedded Coder is it possible to change base workspace variables?
Hello Remi, I believe you could try using Data-Stores for this usecase. They are quite useful when you want to have a common m...

6 months ago | 0

Answered
Simulink Embedded Coder Zero Initialization of Local Variables Not Working
Hi Furkan, There can still be some other optimizations which can remove the zero-initialization code. You could either disable...

6 months ago | 0

Answered
Simulink model -Code generation
Hi Jerome, One way to achieve this is to use the “ssRTWGenIsCodeGen” function. This function detects whether the S-Function is ...

6 months ago | 0

Answered
Embedded Coder C-Code Abruf von Daten
Hallo Markus, Leider bin ich mit Deutsch nicht vertraut und werde auf Englisch antworten. The rtw_solver.h and rtw_continuous...

6 months ago | 1

Answered
Possible Ways to Modifying "Prefix" of Memory Map Header on generated AUTOSAR Code
Hi Onur, The pre and post statements you see are not because of the memory section defined in the CSCDesigner app but to be co...

6 months ago | 0

Answered
Regarding the connection of cloud or router to simulink blocks.
Hi Saranya, Yes, it is possible to connect Simulink to external data sources, including routers or cloud services, to get liv...

7 months ago | 0

| accepted

Answered
MEX compilation failed with message: C compiler produced errors. See build log for compiler error:
Hi Jeevan, This issue might be happening because the mex compiler is unable to find the CPP file for your function.This might h...

8 months ago | 0

Answered
Inconsistent SIL and Normal mode simulation results (Equivalence Criteria Failing )
The issue you are facing is an expected behavior of SIL simulation. Consider a model that references a child model using the “M...

8 months ago | 0

Answered
Importing Excel data into Simulink for giving as input signal - Contains Enumeration values also
Hi Varunjith, For the excel sheet to comply with Signal builder while importing, it should not contain non-numeric values. So,...

8 months ago | 0

Answered
How can I swap states in a simulink "for each" system?
Hi James, The issue you're facing is likely due to the fact that the state update in your simulation happens in discrete time s...

8 months ago | 0

Answered
Image labeller cannot save sessions
Hi Karl, The error messages point to an issue while importing the Image data. This could potentially happen because the image ...

8 months ago | 0

Answered
Is there an option to avoid generating translations in the generated code from a Simulink Model that is created by importing an arxml with Interfaces Mapped to COMPU METTHODS?
Hi Rajni, By translations, I am assuming you mean the comments explaining the code generated from the model. Your attached scr...

8 months ago | 0

Answered
How to use a function within optiproblem?
Hi Anthony, The error you're encountering is due to the way "min" function is being used within the "optimproblem" context. The...

10 months ago | 0

Answered
Image segmentation on difficult background
Hi, I believe you've tried a broad range of conventional methods without satisfactory results, it might be worthwhile to explo...

10 months ago | 0

Answered
NMPC time minimization problem
Hi Almudena, In typical MPC formulations, the cost function is designed to penalize deviations from desired states and/or cont...

10 months ago | 0

| accepted

Answered
backtestStrategy: rebalance function keeps track of past & current open position
Hi Andy, I believe you could use the 'UserData' field in the rebalance function to pass the Position's Table as an input argum...

10 months ago | 0

Answered
How to generate code for model which uses an export-function reference model?
Hi Cornelia, I believe the error you're getting is a documented limitation mentioned here - https://in.mathworks.com/help/rtw/...

10 months ago | 0

Answered
How to get transform between two fixed frames using a camera
Hi Lara, I understand you want to use MATLAB to define fixed frames using 2 cameras to compute transforms between them. This is...

1 year ago | 0

Answered
Simscape multibody with reduced order flexible block
Hi, I understand you are modeling a finn with undulatory motion and facing an error. The model throws that error because there ...

1 year ago | 0

Answered
Statistical features gives a probability one for all features, while importing ensemble table to diagnostic feature designer.
Hi Sed, I understand that you want to rank features using the Diagnostic Feature Designer App but are getting a probability of...

1 year ago | 0

Answered
Camera using the genTL interface disappears when using imaqreset
Hi Matt, I understand you are unable to connect your camera using the 'imaqreset' function. Based on both the problems you desc...

1 year ago | 0

Answered
How to modify Mass in EvReferenceApplication to be "Mass + adder"?
Hi Mark, I understand that you want to modify the 'EvReferenceApplication' to accumulate all the individual weights into a sin...

1 year ago | 0

Answered
Function that solves ODEs using Euler's Method
Hi Alyssar, I understand that you want to write a function for solving ODE's using the Euler method but are facing some errors....

1 year ago | 0

Load more