Answered
Why do I get the error "This driver has been blocked from loading" when trying to install the Simulink Desktop Real-Time kernel?
This is a known issue that occurs when working on a machine that does not have a native x86 CPU. Examples of such configurations...

2 months ago | 0

| accepted

Answered
Does the Vehicle Network Toolbox currently support PCAN-Developer API where I can have Simulink act as a Client connected to a Net without any hardware?
Unfortunately, we currently do not support PCAN-Developer API for PEAK devices with the Vehicle Network Toolbox.

2 months ago | 0

| accepted

Answered
How can I export a matrix as a CSV file?
"csvwrite" is not recommended. Use "writematrix" to export matrix data as a CSV file instead. When writing matrix data to a file...

2 months ago | 19

| accepted

Question


Why do I get error "Unable to find 'nvcc' on system path" when trying to setup NVIDIA hardware with GPU Coder?
I have an NVIDIA Jetson AGX Xavier hardware board to be connected to the host machine and to deploy code from MATLAB using GPU C...

2 months ago | 1 answer | 0

1

answer

Answered
How do I request physical media?
The fastest way to download your products is in the License Center. In order to create an ISO please see the following link: How...

2 months ago | 0

| accepted

Answered
How do I uninstall a toolbox without uninstalling MATLAB?
Toolboxes can be uninstalled primarily from the Add-On Manager, or with the MathWorks Product Uninstaller for previous releases....

2 months ago | 16

| accepted

Question


What is the "main.cu" file and how can I generate and include a custom one when generating code for an NVIDIA target?
I am trying to deploy my network model on a NVIDIA hardware using GPU Coder. I am following the "Deployment and Classificat...

2 months ago | 1 answer | 0

1

answer

Answered
Why does my GPU set-up error with 'emlc:compilationError'?
The host and Jetson are two different environments. In this workflow, code generation is performed on the host, and the resultin...

2 months ago | 0

| accepted

Answered
Why do I get a connection error when installing or activating MATLAB or other MathWorks products?
Computer or network security software is preventing the MathWorks Installer and/or Activation Client from connecting to the...

2 months ago | 49

| accepted

Answered
mwArray vs MATLAB Data API - Which API should I use when using MATLAB Compiler SDK?
For new development—especially if you want the best performance —we strongly recommend using MDA and particularly its strongly-t...

2 months ago | 0

| accepted

Answered
How can I upgrade deployed code (CTFs) on MATLAB Production Server to a new update or release?
A deployed CTF needs to run on the same release that was used to compile it. As a result, in order to upgrade a CTF to a differe...

2 months ago | 0

| accepted

Question


How can I upgrade deployed code (CTFs) on MATLAB Production Server to a new update or release?
I have several CTFs deployed to MATLAB Production Server, all created using the same MATLAB release. I would like to use a new f...

2 months ago | 1 answer | 0

1

answer

Answered
Why am I receiving "XCP internal error: Invalid length for protocol frame" when using external mode?
One possible cause for this error is exceeding the available bandwidth of the XCP connection. There are a few ways to work aroun...

2 months ago | 0

| accepted

Answered
How to resolve the error 'declaration is incompatible with "<variable declaration>"' when generating code with Embedded Coder R2025b?
The error occurs because a user-written variable declaration conflicts with one automatically generated by Embedded Coder R2025b...

2 months ago | 0

| accepted

Question


How to resolve the error 'declaration is incompatible with "<variable declaration>"' when generating code with Embedded Coder R2025b?
I am generating code from my Simulink model using Embedded Coder in R2025b. I have included a manual variable declaration in the...

2 months ago | 1 answer | 0

1

answer

Answered
Why do I receive License Manager Error 4402 when launching MATLAB using a Login Named User license?
"License Manager Error 4402" may indicate that the product attempting to be licensed via Login Named User is not available on th...

2 months ago | 0

| accepted

Answered
Why am I getting a "Firmware Build Failed" error while building the UAV Toolbox Support Package for PX4 Autopilots
The cause of the build failed error is most likely a permission issue. Launch MATLAB R2022b with "Run in Administrator" and try ...

2 months ago | 0

| accepted

Answered
How to stop a "timer" inside a handle "class" when the handle is cleared in MATLAB?
"clear" does not delete handle objects. It deletes their references. When the reference count to a handle object drops to 0 (i.e...

2 months ago | 0

| accepted

Answered
Why am I getting the error "found unsupported dynamic matrix type" in HDL Coder R2024b?
Output variables for a function ("DUT") generated using HDL Coder must have a pre-defined size. The following workaround may hel...

2 months ago | 0

| accepted

Answered
Can I optimize buffer usage in generated code for input and output arguments of a subsystem with Embedded Coder R2024a?
As of MATLAB R2024b, this is not possible for a subsystem.&nbsp; The development team is aware of this limitation and will consi...

2 months ago | 0

| accepted

Answered
Why does converting my model into a masked subsystem result in an error indicating a mismatch between the inferred signal size and the size determined by back propagation in MATLAB R2022a?
The issue stems from how Simulink determines signal dimensions within subsystems and masked subsystems.&nbsp;Simulink determines...

2 months ago | 0

| accepted

Answered
Why do I get "undefined reference" error when trying to generate code that references a C++ function?
Since the definition of the external function is defined in a C++ file, a C++ compiler will be used to build the object for that...

2 months ago | 0

| accepted

Answered
Why do I get "Access violation reading location 0xFFFFFFFFFFFFFFFF" error while running .NET application which uses .DLL generated by MATLAB Coder R2024a?
The best practice is to use the “emxArray” utility functions to handle pointers, memory, and general handling of arrays instead ...

2 months ago | 0

| accepted

Answered
How to use the Partial Differential Equation Toolbox for generating and plotting a 2-D plane geometric object in MATLAB, where the domain of interest is the interior of a simple closed curve?
You can use the MATLAB functions “fegeometry” and “pdegplot” for generating and plotting 2-D plane geometric objects using Parti...

2 months ago | 0

| accepted

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

Load more