Question


(matlab online)Error double clicking to open any m/mlx file in the left “current folder”?
In the latest version R2023b of matlab online, double-click to open any m/mlx file in the "Current Folder" column on the left si...

1 year ago | 1 answer | 0

1

answer

Answered
Is it computationally redundant to solve the optimal rigid transformation with joint SVD+RANSAC?
By carefully reading the MATLAB and OpenCV source code, fortunately I discovered part of the reason for the time-consuming proce...

1 year ago | 0

| accepted

Question


Is it computationally redundant to solve the optimal rigid transformation with joint SVD+RANSAC?
I randomly used two sets of 2D point sets to estimate the optimal rigid transform (or similar transform) to performance, and use...

1 year ago | 1 answer | 0

1

answer

Answered
Look up Table based Lens Distortion Correction
I've written an example, you might want to refer to it here https://ww2.mathworks.cn/matlabcentral/fileexchange/118170-use-open...

1 year ago | 0

Question


(call python)Can matlab use multiple variables to receive separate tuple values returned from python functions?
When a python module function is called in matlab and the python function returns a tuple value, is it possible to assign each e...

1 year ago | 1 answer | 0

1

answer

Answered
matlab live script support run Python language directly
I now believe that the above "new feature" cannot be integrated into future versions of MATLAB because it does not follow the lo...

1 year ago | 0

| accepted

Question


matlab live script support run Python language directly
Luckily Mathworks has started to focus on the interaction between MATLAB and python in the last few years, rather than comparing...

1 year ago | 2 answers | 0

2

answers

Answered
I cannot enable 3D view in the driving scenario designer app [It may be related to the Ubuntu system]
The 3D simulation in drivingScenario APP "3D Display >View simulation in 3D display" is currently only supported on Windows, mai...

1 year ago | 0

Answered
How can I read a .json file?
My personal opinion is that there is still no direct mapping from a generic readable json file to MATLAB's built-in types (struc...

1 year ago | 0

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

1 year 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, ...

1 year ago | 1 answer | 0

1

answer

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

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

1 year ago | 1 answer | 0

1

answer

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

1 year ago | 1 answer | 0

1

answer

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

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

1 year ago | 0 answers | 0

0

answers

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

1 year ago | 0

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

1 year ago | 1 answer | 0

1

answer

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

1 year ago | 1 answer | 0

1

answer

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

1 year ago | 1 answer | 0

1

answer

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

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

1 year ago | 2 answers | 0

2

answers

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

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

1 year ago | 1 answer | 0

1

answer

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

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

1 year ago | 9

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

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

1 year ago | 1 answer | 0

1

answer

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

1 year ago | 2 answers | 0

2

answers

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

1 year ago | 1 answer | 0

1

answer

Load more