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...

4 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...

4 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...

4 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...

4 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...

4 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...

4 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...

4 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 ...

4 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...

4 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...

4 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...

4 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...

4 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...

4 months ago | 0

| accepted

Answered
Why do I get "No Internet Connection" error when trying to run "demos" and "documentation" in MATLAB R2023a?
The "no internet connection" error that occurs when attempting to open external or internal windows for documentation and demos ...

4 months ago | 0

| accepted

Answered
Can I use the "help" function to display extensive function documentation in the R2025a MATLAB Command Window?
The update to the "help" function was introduced in R2024b, where the function now displays abbreviated help text in the Command...

4 months ago | 0

| accepted

Answered
How to ensure changes made by "Parameter Writer" block are retained after simulation in MATLAB R2024b?
The "Parameter Writer" block only modifies parameter values in memory during simulation. As a result, the actual values of the p...

4 months ago | 0

| accepted

Answered
Why are "Argument" parameters not exported in FMU 2.0 in MATLAB R2024b?
Some parameters may not be exported as FMU arguments if their value does not impact the simulation. This may happen if for examp...

4 months ago | 0

| accepted

Question


mwArray vs MATLAB Data API - Which API should I use when using MATLAB Compiler SDK?
When developing libraries with MATLAB Compiler SDK, I see most deployment targets generally have two paths for handling data exc...

4 months ago | 1 answer | 1

1

answer

Question


Embedded Coder が "memset" を使用してハードコード定数の代わりにするにはどうしますか?
Embedded Coder が "memset" を使用してハードコード定数の代わりにするにはどうしますか? 定数ブロックに 100e3 要素の配列があります。"Use memset to initialize floats and doubles to...

4 months ago | 1 answer | 0

1

answer

Answered
How can I run MATLAB code from within a GitHub Codespace?
Because a GitHub codespace runs inside of a Docker container (called a dev container), any feature of the MATLAB VS Code extensi...

4 months ago | 0

| accepted

Answered
How do I resolve 'Bundle' error messages?
Try the following steps to resolve Bundle errors in MATLAB/Simulink:Perform a clean installation of MATLAB as explained in ...

4 months ago | 0

| accepted

Answered
Which "optimoptions" should be used for "fmincon" to optimize a cam-based transmission design using the Optimization Toolbox in MATLAB R2023b?
Here are the "optimoptions" that can be leveraged using "fmincon()" for the cam-based transmission design 1) Regarding sharing t...

4 months ago | 0

| accepted

Answered
Why I am unable to read data into Simulink using "UDP Receive" blocks on my Windows PC?
When using UDP communication in your Simulink model running on a desktop PC, make sure to use the correct UDP Receive and UDP Se...

4 months ago | 1

| accepted

Answered
How can I view device-specific properties in the code suggestions of a device in Image Acquisition Toolbox and MATLAB R2024b?
As of MATLAB R2024b, this is expected behavior. Since device-specific properties vary for each device, these properties are unkn...

4 months ago | 0

| accepted

Answered
How to resolve Simulink Error Message "Derivative of state '1' in block at time 0.0 is not finite..."
This problem occurs when an operation in the model that causes an "Inf" or "NaN" output. This can happen if an "Integrator" is p...

4 months ago | 0

| accepted

Answered
Why do I get a "Failed to compute constant value for nontunable property" error while generating code using a MATLAB System Object?
MATLAB Coder is limited to only adding nontunable parameters for system objects like 'trackerGNN' by creating them as compi...

4 months ago | 0

| accepted

Answered
How can I create a heterogenous array using 'arrayfun' in MATLAB R2024b?
In MATLAB R2024b, 'arrayfun' cannot directly create a heterogenous array. However, you can accomplish this using 'horzcat' or an...

4 months ago | 0

| accepted

Answered
How do I open multiple windows of MATLAB R2024b with matlab-proxy in Docker?
"matlab-proxy" does not allow simultaneous access to the same instance of MATLAB through multiple browser tabs. This is by desig...

4 months ago | 0

| accepted

Answered
How can the CompuMethods in a generated A2L file have a TAB_VERB conversion method in MATLAB R2023b?
You can create and add a custom CompuMethod using the workflow described in this documentation example about customizing an ASAP...

4 months ago | 0

| accepted

Answered
How can I Interface MATLAB R2022b with TI Radar Kits and a DCA1000EVM Evaluation Board without a Hardware Support Package?
As of MATLAB R2024b, the Radar Toolbox Support Package for Texas Instruments mmWave Radar Sensors supports setting up and c...

4 months ago | 0

| accepted

Load more