Answered
How do I configure temperature-dependent parameters for the “Peltier Device” block in Simscape R2025a?
Unfortunately, the “Peltier Device” block does not have built-in functionality to configure parameters based on temperature. Our...

2 months ago | 0

| accepted

Answered
How does the "relativeEntropy" function work internally?
The "relativeEntropy" function implements the equation for the one-dimensional case that is below equation (5.14) on page 176 (s...

2 months ago | 0

| accepted

Answered
Why does the text inside the "Summary" column disappear in the Requirements Editor in R2024b?
You need to click on the "Refresh" button, as shown in Fig. 9 below. Then, the text in the "Summary" column will appear, as show...

2 months ago | 0

| accepted

Answered
How can I edit the properties for multiple requirements in the Requirements Editor in MATLAB R2024b?
It is not currently possible to batch edit the properties of multiple requirements using the Requirements Editor. As a workaroun...

2 months ago | 0

| accepted

Answered
How to troubleshoot Simscape error "Nonlinear solver: failed to converge, residual norm too large."?
The error is saying that Simscape is incapable of solving your system. This can occur for a variety of reasons; however, most of...

2 months ago | 0

| accepted

Answered
Why do I see an error, "failed to load HTTP resource", when I publish a script as a PDF in MATLAB R2024a and R2023b?
When using MATLAB R2023b and R2024a, you might encounter a sporadic error when publishing a MATLAB script as a PDF document by u...

2 months ago | 1

| accepted

Answered
How can I tilt or rotate the reflector in a reflector cross-dipole (turnstile) antenna in R2024b?
Yes, it is possible to tilt the reflector and not the exciter. However, custom 3D geometry workflows will be required. The code ...

2 months ago | 0

| accepted

Question


How can I tilt or rotate the reflector in a reflector cross-dipole (turnstile) antenna in R2024b?
 In R2024b, I'm trying to rotate the reflector in a reflector cross-dipole (turnstile) antenna using the following code: c...

2 months ago | 1 answer | 0

1

answer

Answered
Why do I get an error saying "No data for report generation" when I try to generate test reports in a "parfor" loop in MATLAB R2023b?
As of MATLAB R2023b, generating report in parallel is a limitation in Simulink Test Report Generation. However, it is possible ...

2 months ago | 0

| accepted

Answered
How do I resolve the code replacement library error: "incompatible with hardware implementation" when building a TI C2000 model?
This is expected behavior when the option "ProdEqTarget" (Configuration Parameters > Hardware Implementation > Advanced pa...

2 months ago | 0

| accepted

Answered
How can I resolve the "malformed URL" error when clicking "pull / push" in the "Source Control" tab in MATLAB R2021a?
As of R2021a, we use a different library for Git. Its behavior matches command-line Git more closely and it will look up environ...

2 months ago | 0

| accepted

Answered
Why am I getting a "Unmatched parameter name" error when trying to connect to a database using the "database" command in MATLAB R2024b?
This issue can occur when the database name "database_name" already exists as a Data Source in MATLAB. To verify this, run the f...

2 months ago | 0

| accepted

Answered
How do I build my model containing a C-MEX S-function if I don't have the S-function C source file using Simulink Coder?
You can build the model even though you do not have the source file for the S-function. Please refer to the information below. T...

2 months ago | 0

| accepted

Answered
How to scale the output of the 'spectrogram' function to obtain matching amplitude of the original signal
The magnitudes do not match because of two reasons. First, the default window in spectrogram is a Hamming window of the specifie...

2 months ago | 0

| accepted

Answered
Why is the step-size in exported waveforms from Signal Integrity Viewer not fixed, and how to fix it?
The Signal Integrity Viewer is resampling the data, and I suspect that you're simply seeing numeric inaccuracies due to the very...

2 months ago | 0

| accepted

Answered
How can I log signals in the lower levels of my model from the top level in R2021a?
Signal logging can be turned on or off from the top-level model using the Signal Table for the top-level model. This is shown in...

2 months ago | 0

| accepted

Answered
Why do I see a jump/pulse in a bathtub plot in SerDes Designer?
In SerDes Designer, when a bathtub plot is created, both the Data bathtub and the Clock PDF are plotted. The left and right curv...

2 months ago | 0

| accepted

Answered
Why do I receive the error message: "Invalid size of channel dimension" when using the "trainnet" function in MATLAB R2024a?
This issue occurs when either the size of the "trainingData" or the size of the "validationData" does not match the number of fe...

2 months ago | 0

| accepted

Answered
Why do I get the error message 'Dot indexing is not supported for variables of this type.' when performing range analysis while generating fixed-point code in MATLAB R2025a?
The issue is happening because of use of a struct whose fields are not used for any computation. Fixed-Point Converter is lookin...

2 months ago | 0

| accepted

Question


Why do I get the error message 'Dot indexing is not supported for variables of this type.' when performing range analysis while generating fixed-point code in MATLAB R2025a?
When generating fixed-point code, when passing a struct with empty fields as an argument, performing range analysis on this argu...

2 months ago | 1 answer | 0

1

answer

Answered
How can I change the parameters of a Simulink model during simulation?
There are many ways to achieve it, depending on your use case: 1. Saving and restoring the simulation state as the 'SimState': T...

2 months ago | 0

| accepted

Answered
How to resolve the error “We’re sorry, something went wrong” when publishing a GitHub Release to File Exchange?
To resolve this:Connect using Default Branch firstPublish a new version and switch to GitHub Releases For more details on connec...

2 months ago | 0

| accepted

Question


How to resolve the error “We’re sorry, something went wrong” when publishing a GitHub Release to File Exchange?
I want to publish my project from GitHub to MATLAB File Exchange. When I select GitHub Releases as the connection option, I am r...

2 months ago | 1 answer | 0

1

answer

Answered
Why are the results different when I run a Simulink model containing Simscape blocks with a variable-step solver vs. when I run the same model but with some blocks compartmentalized in a subsystem?
This discrepancy in the results occurs due to creating a subsystem in a model with a "Variable-step" solver type setting wi...

2 months ago | 0

| accepted

Question


Why are the results different when I run a Simulink model containing Simscape blocks with a variable-step solver vs. when I run the same model but with some blocks compartmentalized in a subsystem?
I am running a Simulink model containing Simscape blocks, with a variable-step and automatic selection solver setting. Why do I ...

2 months ago | 1 answer | 0

1

answer

Answered
How to unload Java libraries in MATLAB R2024b?
It is possible to unload Java libraries in MATLAB, but only if they are the dynamic path. In order to be on the dynamic path, th...

2 months ago | 0

| accepted

Question


How to unload Java libraries in MATLAB R2024b?
I have a custom Java library in MATLAB R2024b, more specifically a JAR file, that lives in Git. Anytime I switch Git branches, t...

2 months ago | 1 answer | 0

1

answer

Answered
How do I include multiple C library headers with the same include guards in Simulink?
There are two ways to do this: 1) Encapsulate the C Function block in a model reference (see the screenshot below). This way one...

2 months ago | 0

| accepted

Answered
Can I include only specific MATLAB DLL files, like "MathWorks.MATLAB.Types.dll", in an external .NET application?
Only using specific MATLAB DLL files in an application without having MATLAB or MATLAB Runtime installed is not a supported work...

2 months ago | 0

| accepted

Answered
How do I Transmit to Multiple SPI Devices on the Same Module in Simulink on a C2000?
Each SPI Transmit block is only for use with one peripheral device. Not being able to change the chip select pin during use is i...

2 months ago | 0

| accepted

Load more