Answered
Unable to use Localizable/FileScope storage for signal state variables while generating C++ code generation. For C code generation I am able to use it.
Hi @Priyanka, I was also facing the issue while generating code in C++, and after going through the bug reports and documentati...

ungefär ett år ago | 0

Answered
How can I use custom storage class for defining global variables in matlab code for code generation?
Hi @anamika kumari, To use a custom Storage Class in MATLAB, follow these steps: Open your Simulink model. Go to the C Code t...

ungefär ett år ago | 1

Answered
Plot 3-way anova for given variable
Hi @Elzbieta, To perform a three-way ANOVA in MATLAB and plot the results for each device separately, you can follow these step...

ungefär ett år ago | 1

Answered
Importing large .csv by READTABLE gives wrong results
Hi @Weronika Huss, One way to fix this issue is to adjust the formatting of the CSV file. Some lines have an inconsistent numbe...

ungefär ett år ago | 0

Answered
is it possible to perform a nested Batch?
Hi @Rub Ron, Upon going through the documentations, I found that running nested "batch" calls in MATLAB can be tricky because e...

ungefär ett år ago | 0

Answered
Problems with pulse and LEADING/LAGGING Tolerance in Test Manager
Hi @Claudio Ciciriello, As you noted, Simulink Test Manager applies "leading and lagging tolerances" to allow for acceptable ti...

ungefär ett år ago | 1

| accepted

Answered
Why do I encounter that "rtw.connectivity.HostLauncher: stopped executable with host process identifier xx" when attempting to deploy the Simulink model on hardware?
Hi @昱颖 陈, I encountered a similar issue and, upon examining the documentation, I found the following bug report: https://www.ma...

ungefär ett år ago | 0

Answered
How can I define the additive process noise for optimal tuning?
Hi @Xinyu Yang, I understand your concern as when dealing with EKFs, tuning the process noise covariance matrix is crucial for ...

ungefär ett år ago | 0

Answered
How do I plot an integral which is repeated over an interval?
Hi Mitchell, To save the values of "alpha_bar_s" as a vector and plot them against the wavelength, you need to store each compu...

ungefär ett år ago | 1

Answered
I am getting errors that I am using ".*" and "*" wrongly in my matrix multiplications in my code. I am poor at matrix algebra and don't know when to use each operator.
Hi William, It looks like you're encountering issues with using element-wise operations (.*) and matrix operations (*) in MATLA...

ungefär ett år ago | 0

Answered
Highlight in model in testmanager
Hi, To highlight a specific step in "sltest.harness" from the results of "sltest.testmanager" you can follow these general step...

ungefär ett år ago | 0

Answered
What is the method of interpolation in the function pdeinterpolant?
Hi Alex, The "pdeInterpolant" function in MATLAB is used to interpolate solutions of partial differential equations (PDEs) at a...

ungefär ett år ago | 1

Answered
The make command returned an error of 2
Hi, The error "No rule to make target" is typically thrown by the make/gmake build automation tool because it can't find the in...

ungefär ett år ago | 0

Answered
Table-based battery sometimes stops charging
Hi Diogo, When addressing such scenarios in which terminal voltage exceeds the maximum allowed value during the charging proces...

ungefär ett år ago | 0

Answered
Arduino simulink gets wrong timing with pulse generator
Hi Francesco, It sounds like you're encountering a timing issue when trying to perform both LED blinking and serial communicati...

ungefär ett år ago | 1

Answered
Mesh problems for large aspect ratio object
Hi John, When dealing with thermal modeling of a thin film heater, especially with high aspect ratios, ensuring that the mesh i...

ungefär ett år ago | 1

| accepted

Answered
Pack (Generated Block) BatteryBuilder: How can I limit my SOC from 0 to 1
Hi Felix, When addressing such scenarios in which you could still charge the battery above the maximum voltage by applying a po...

ungefär ett år ago | 0

| accepted

Answered
How to Generate a 3D Radiation Pattern Similar to Sensor Array Analyzer in MATLAB using code?
Hi Thibaut, To generate a 3D radiation pattern line-by-line in MATLAB, similar to the Sensor Array Analyzer app, you can use a ...

ungefär ett år ago | 0

Answered
ROS2 Toolbox error when I try to add custom service/message
Hi Federico, The above error message may be caused by certain paths being present in your "PATH" variable and/or other environm...

ungefär ett år ago | 0

Answered
How to read input and output response graphs in the MPC Designer
Hi Sein, From the image you provided, the "input response graph" shows a step function that starts at zero, steps up to a certa...

ungefär ett år ago | 0

Answered
Sequence oder Featureinput layer ?
Hi Tobias, Instead of using a "sequenceInputLayer", you can use a standard "feedforwardnet" in MATLAB. You can follow the below...

ungefär ett år ago | 0

Answered
Getting warning in Model Advisor Exclusion
Hi Dipali, The new file "modelAdvisorExclusions_convertedForMA.xml" should be located in the same directory as your original "m...

ungefär ett år ago | 1

Answered
Is NPRACH Detection Example available only on R2024 version?
Hi Raj, To determine the availability of a specific tool or command, such as "lteNPRACHDetect", you can refer to the MathWorks ...

ungefär ett år ago | 0

| accepted

Answered
HOW TO PLOT ON THE SAME FIGURE PLOTS OF DIFFERENT SCRIPTS
Hi Pasquale, You can plot two graphs with same variables and parameters in the same figure by using functions to encapsulate th...

ungefär ett år ago | 0

Answered
How to display Chart diagram in a report, using report generator?
Hi Tommaso, To visualize only the top-level diagram of a chart in Simulink, you may refer to the below steps: Use the "get_par...

ungefär ett år ago | 0

Answered
Try/Catch inside the Simulink Function
Hi, When working with Simulink in MATLAB, the "try/catch" construct is not supported for code generation even when using "coder...

ungefär ett år ago | 0

Answered
configuration about simulink scope
Hi Wenchao, By default, the "Scope" block might display signals from Channel 1. If you want to change the active display to Cha...

ungefär ett år ago | 0

| accepted

Answered
What principles does the accumulator for storing data (output or intermediate) follow after converting the model into C code using a C coder?
Hi Peter, When generating C code for Simulink models, the principles for storing data in accumulators generally follow these gu...

ungefär ett år ago | 1

| accepted

Answered
is it possible to see what variables and functions affecting a certain variable ?
Hi Andre, To trace how a particular variable is affected throughout your code, you can use many different approaches such as MA...

ungefär ett år ago | 0

Answered
from workspace to MATLAB FUNCTION BLOCK in simulink unable to fetch data in scope
Hi Sangeeta, For importing data from the MATLAB Workspace, processing it using a MATLAB Function Block, and visualizing it usin...

mer än ett år ago | 0

Load more