Answered

matlab live script support markdown syntax?

Luckily, I learnt that R2023b which will be released next month will start to support mlx file to export markdown file, althoug...

matlab live script support markdown syntax?

Luckily, I learnt that R2023b which will be released next month will start to support mlx file to export markdown file, althoug...

9 maanden ago | 1

| accepted

Question

Generating corresponding C++ interface class function signature inline behaviour for MATLAB classes not as expected?

Descriptions： I would like to generate C++ classes for the MATLAB built-in object function poseGraph and its object functions, ...

10 maanden ago | 1 answer | 0

Answered

(matlab coder) Unable to package?

MATLAB's built-in packing function( "Package Code" button or packNGo) has not been updated in time for the new factorGraph suppo...

(matlab coder) Unable to package?

MATLAB's built-in packing function( "Package Code" button or packNGo) has not been updated in time for the new factorGraph suppo...

10 maanden ago | 1

| accepted

Question

(matlab coder) Unable to package?

When I try the following code for C++ class generation,It can be generated successfully, but it fails to be packaged, I get the ...

10 maanden ago | 1 answer | 0

Question

How to integrate codegen generated multiple different C projects using calls to generated functions?

As far as I know through internet searching, in order to fuse multiple code/functions generated by codegen in one big project, y...

10 maanden ago | 1 answer | 0

Answered

How to classify multitasking and multi-label in MATLAB using deeplearning?

Multi-label classification can be done by changing the loss function to "binary cross-entropy loss", as far as I can remember, u...

How to classify multitasking and multi-label in MATLAB using deeplearning?

Multi-label classification can be done by changing the loss function to "binary cross-entropy loss", as far as I can remember, u...

11 maanden ago | 0

| accepted

Question

MATLAB coder:It's time to improve the efficiency and universality of cv(computer vision) toolbox code generation

The Matlab Coder Toolbox™ is a very useful toolkit, but its code generation is often unsatisfactory and some users use it to gen...

12 maanden ago | 0 answers | 0

Answered

Non linear least square fitting

I offer here a robust least squares fit for reference purposes only. %% Create randome points along a circle r = 1; numPts = ...

Non linear least square fitting

I offer here a robust least squares fit for reference purposes only. %% Create randome points along a circle r = 1; numPts = ...

ongeveer een jaar ago | 0

Submitted

struct data Serialize-Deserialization

matlab struct or struct array Serialize/Deserialize

ongeveer een jaar ago | 2 downloads |

Question

（Enhancement Request）how to Create data files that the generated code reads at run time to support C/C++ code generation?

As far as I know, coder.write and coder.read are functions that support serialisation/deserialisation at runtime in R2023a. code...

ongeveer een jaar ago | 1 answer | 0

Question

Non-constant expression or empty matrix. This expression must be constant because its value determines the size or class of some expression.

How should I correctly pass in variable structure fields to support C/C++ code generation? My problem is simplified by the fact ...

ongeveer een jaar ago | 1 answer | 0

Question

How do I pass the correct string for a function input parameter?

For example, I want to debug a mex file using valgrind in a linux terminal and need to pass in a string using the following comm...

ongeveer een jaar ago | 1 answer | 0

Answered

libtiff.so.5: version `LIBTIFF_4.0' not found (required by *.so) for matlab in ubuntu environment?

I solved the problem using the following： sudo rm -rf /usr/local/MATLAB/<MATLAB_RELEASE>/bin/glnxa64/libtiff.so.5 sudo ln -s /...

libtiff.so.5: version `LIBTIFF_4.0' not found (required by *.so) for matlab in ubuntu environment?

I solved the problem using the following： sudo rm -rf /usr/local/MATLAB/<MATLAB_RELEASE>/bin/glnxa64/libtiff.so.5 sudo ln -s /...

ongeveer een jaar ago | 1

| accepted

Question

libtiff.so.5: version `LIBTIFF_4.0' not found (required by *.so) for matlab in ubuntu environment?

When running a mex file or mixing it with the opencv library, an error like the one below occurs, how do I fix it? libtiff.so....

ongeveer een jaar ago | 2 answers | 0

Answered

Matlab crashing in ubuntu when using MATLAB coder

1. Ubuntu 18.04/20.04 has libcanberra-gtk3-module (gtk-3.0+) installed by default, and Matlab needs to call the gtk-2.0+ canberr...

Matlab crashing in ubuntu when using MATLAB coder

1. Ubuntu 18.04/20.04 has libcanberra-gtk3-module (gtk-3.0+) installed by default, and Matlab needs to call the gtk-2.0+ canberr...

ongeveer een jaar ago | 1

Question

matlab uses "which" to find a file that shows up as a built-in function location, but why doesn't the file actually exist?

which some-built-in-function filename = "some-built-in-function-path"; if isfile(filename) disp("this file exist") else...

ongeveer een jaar ago | 1 answer | 0

Answered

performance: vision.AlphaBlender is slower when image is big.

There are many ways to solve this, such as rewriting the implementation of this function yourself in C/C++ and wrapping it as a ...

performance: vision.AlphaBlender is slower when image is big.

There are many ways to solve this, such as rewriting the implementation of this function yourself in C/C++ and wrapping it as a ...

ongeveer een jaar ago | 0

| accepted

Answered

Why does MATLAB crash on Linux with "Inconsistency detected by ld.so: ../elf/dl-tls.c: 597: _dl_allocate_tls_init:"

1. Ubuntu 18.04/20.04 has libcanberra-gtk3-module (gtk-3.0+) installed by default, and Matlab needs to call the gtk-2.0+ canberr...

Why does MATLAB crash on Linux with "Inconsistency detected by ld.so: ../elf/dl-tls.c: 597: _dl_allocate_tls_init:"

1. Ubuntu 18.04/20.04 has libcanberra-gtk3-module (gtk-3.0+) installed by default, and Matlab needs to call the gtk-2.0+ canberr...

ongeveer een jaar ago | 6

Answered

(matlab coder)How should the coder::array member function set convert opencv's mat type to its type in-place?

After repeated investigations and trials over this period of time, in relation to my current problem, I have found out what the ...

(matlab coder)How should the coder::array member function set convert opencv's mat type to its type in-place?

After repeated investigations and trials over this period of time, in relation to my current problem, I have found out what the ...

ongeveer een jaar ago | 0

| accepted

Question

(matlab coder)Generating C++ code for scalar string results in a garbled last character?

my entry-point codegen function: function out = useImageAndString(imagePathstr)%#codegen arguments imagePathstr (1,1) s...

ongeveer een jaar ago | 1 answer | 0

Question

(matlab coder)How should the coder::array member function set convert opencv's mat type to its type in-place?

When using matlab coder to generate C++ code, the generator automatically generates a C++ class for coder::array, which is defin...

ongeveer een jaar ago | 2 answers | 0

Question

(question)How does the arguments syntax apply multiple optional type restrictions to one of the input arguments?

For example, I need to restrict the type of the input argument inImage to "uint8" or "logical" or "double" for the following sig...

ongeveer een jaar ago | 1 answer | 0

Answered

Is there an offline html document download for matlab?

Starting in R2023a, the documentation is not installed as part of a product installation. This change significantly reduces the ...

Is there an offline html document download for matlab?

Starting in R2023a, the documentation is not installed as part of a product installation. This change significantly reduces the ...

meer dan een jaar ago | 0

| accepted

Answered

question: Use of integrated external C/C++ code in matlab coder does not work for coder.varsize?

After some careful research, I found that coder.varsize is not supported for entry function input parameters and there are many ...

question: Use of integrated external C/C++ code in matlab coder does not work for coder.varsize?

After some careful research, I found that coder.varsize is not supported for entry function input parameters and there are many ...

meer dan een jaar ago | 0

| accepted

Question

question: Use of integrated external C/C++ code in matlab coder does not work for coder.varsize?

When I follow this topic "Call Custom C/C++ Code from the Generated Code" to generate my own external/legacy C++ code, coder.var...

meer dan een jaar ago | 1 answer | 0

Question

matlab coder:Can I give some advice on C/C++ code generation for the Image Processing Toolbox and Computer Vision Toolbox?

As far as I know from years of experience and official releases(see attachment), many of the built-in functions in the mathworks...

meer dan een jaar ago | 0 answers | 0

Question

matlab coder:Can the C++ functions generated for the entry point functions of the "arguments" validation syntax take mergeability into account?

For example, there is such an entry-point function in matlab that needs to generate C/C++ code, and I have generated several fun...

meer dan een jaar ago | 1 answer | 0

Question

(Enhancement Request) generated code for the "arguments...end" default argument syntax in matlab coder

It is well known that the 'arguments' default argument syntax is very easy to use and read in MATLAB functions.In the latest ver...

meer dan een jaar ago | 2 answers | 0

Answered

VideoReader reads ".h264" video compression file with error "Caught unexpected exception of unknown type."

After much trial and error, I was lucky enough to find a solution that worked for me, and I am sharing it with you so that I can...

VideoReader reads ".h264" video compression file with error "Caught unexpected exception of unknown type."

After much trial and error, I was lucky enough to find a solution that worked for me, and I am sharing it with you so that I can...

meer dan een jaar ago | 2

| accepted