Question


Why does "coder.checkGpuInstall" fail with an error "emlc:compilationError" on the "Test Basic Code Generation" step?
After installing GPU Coder, I ran the "coder.checkGpuInstall" function. This function returned: >> coder.checkGpuInstall...

2 months ago | 1 answer | 0

1

answer

Answered
How to fix the error "cc1plus: fatal error: cuda_runtime.h: No such file or directory" when running the Basic Code Generation test for GPU Coder R2021a?
This error can appear if "[matlabroot]/sys/cuda/glnxa64/cuda/include/cuda_runtime.h" is not present in the installation, which m...

2 months ago | 0

| accepted

Question


How to fix the error "cc1plus: fatal error: cuda_runtime.h: No such file or directory" when running the Basic Code Generation test for GPU Coder R2021a?
I am trying to set up GPU code generation. When I run:  >> results = coder.checkGpuInstall('full') The following err...

2 months ago | 1 answer | 0

1

answer

Question


Why do I receive the error "Unable to find the 'CUDA_PATH' environment variable" when using the GPU Coder function "coder.checkGpuInstall"?
I followed all instructions in the following documentation pages in order. 1. Installing Prerequisite Products 2. Setting Up the...

2 months ago | 1 answer | 0

1

answer

Question


How to set up CUDA and cuDNN to resolve "Compatible GPU" errors when using "coder.checkGpuInstall" in MATLAB R2023a?
I am trying to generate code with GPU Coder R2023a. I am using an NVIDIA RTX 3080TI graphics card with NVIDIA Driver Version v52...

2 months ago | 1 answer | 0

1

answer

Answered
How do I activate MATLAB or other MathWorks products without an internet connection?
To activate MATLAB and/or other MathWorks products on an offline machine, you must:Obtain your Host ID(Individual licenses ...

2 months ago | 12

| accepted

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

Load more