Answered
Why do i receive an error when building code for STM32 application in MATLAB 2019B?
Hi, As the Simulink Model uses a custom 'tlc' and a custom template make file (tmf), code generation is not possible at our end...

3 years ago | 0

| accepted

Answered
how can add lamda value to matrix in image processing?
Hi, You can add a scalar ("lamda") to a matrix by using the '+' operator. Note that this addes 'lamda' to all the elements of t...

3 years ago | 0

| accepted

Answered
Coulomb 3.3 Build input from CMT or focal mech. data
Hi, The Function 'deg2utm' is in a folder names "resources". Starting in MATLAB R2019a, the "resources" folder is a reserved fo...

3 years ago | 1

Answered
Can I reduce Hough transform line results/combine results with similar theta
Hi, The ‘MinLength’ Argument to the ‘houghlines’ function determines the number of lines that will be given as output and stor...

3 years ago | 1

| accepted

Answered
How do I prevent my figures from duplicating?
Hi, The figure 'untitiled.fig' is duplicating as a result of 'untitled' function call from the ‘Obj_Add_Callback’ function in t...

3 years ago | 0

| accepted

Answered
EPOS4 Maxon Group and beaglebone programmed from Simulink
Hi, You can add compile time flags to your build environment of Embedded Coder using the 'addCompileFlags' function. For Exam...

3 years ago | 0

| accepted

Answered
There is no Interface tab in Code Generation (r2017b)
Hi, I am able to find the 'Interface' tab under 'Code Generation' in the 'Configuration settings' of the Simulink model. I sugg...

3 years ago | 0

Answered
How to make a mechanical model for a deformable linear wire using simscape multibody?
Hi, You can use the General Variable Mass block to set the center of mass in simscape. The simscape model can be rotated alon...

3 years ago | 0

Answered
Ideal rankine cycle with open feedwater heater
Hi Here is an example that can help you with Ideal rankin cycle. https://www.mathworks.com/help/physmod/simscape/ug/rankine-c...

3 years ago | 0

Answered
DAQ though MATLAB, writing data to other device issue
Hi, Ensure that you are using the device in the same interface that it is configured to work with. The two interfaces being Tra...

3 years ago | 0

Answered
Prevent execution of a block if link to library is not resolved
 Hi, To protect the custom Simscape block, you can use the ‘Lock Links’ feature under the Library Tab. This doesnot allow the ...

3 years ago | 1

Answered
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached. 'serial' unable to read any data.
Hi, Did you try using 'serialport' function to create the serial connection, as 'serial' function is not recommended to use due...

3 years ago | 0

Answered
Face detection and tracking demo not working
Hi Hari, The Documentation that you are refering is the Documentation for MATLAB R2020b. You can update your MATLAB to the lat...

3 years ago | 0

Answered
monoCamera codegen error: Handle Classes in top-level outputs are not supported in MATLAB Coder
Hi Li Chen, ‘sensor' is a Handle class object of the class ‘monoCamera’. A handle class object cannot be an entry-point (top ...

3 years ago | 0

Answered
Parallel Toolbox sets a max of 1 workers on new cluster in R2020b
 Hi, The issue could be with the other applications running in parallel with MATLAB or the system configurations. Hence this c...

3 years ago | 0

| accepted

Answered
Arithmetic coding, the way to find decimal representation of codeword
Hi, You can get the length of the code word using 'size' function lengthOfCodeWord = size(code,2);

3 years ago | 0

Answered
installed compiler not found
Hi Raphael, Firstly, make sure that you have installed the complete version of the MinGW compiler from the add-on section of ...

3 years ago | 0

Answered
Error in Example LaneVehicleDetectionInSimulinkUsingCNNExample (R2020b)
Hi, This is a known issue in windows version of MATLAB 2020b which might be fixed in a future release.

3 years ago | 0

Answered
THD+N calculation
Hi Willaim Jia, The calculation of Total Harmonic Distortion and noise (THD + N) of a signal is explained in this example. Th...

3 years ago | 0

Answered
how do i create a sound signal whose frequency increase after every second in simulink
Hi, 1. You can use a ‘chirp’ block to generate a sine wave with increasing frequency with time. You can tune the block paramet...

3 years ago | 0

Answered
Can I control GUI with Hand Gestures or variable input (instead of a mouse)?
Hi, The ability to control mouse pointer position, motion and clicks is not available in MATLAB. As a work around, you can use...

3 years ago | 0

| accepted

Answered
How to use isocolor with you own color condition ?
Hi, You can use the 6th argument of ‘isosurface’ to change the color gradient of the isosurface. Here is an example ...

3 years ago | 0

Answered
Building a Labview user interface for a Simulink Model with Labview simulation interface toolkit
 Hi, For integrating LabView and Simulink you can refer to the answer here. Another possible workaround would be to search...

3 years ago | 0

Answered
How to run C codes in Matlab on linux?
 Hi, C code can be compiled in Linux using the mex command. Ensure that you have gcc installed in your machine. If you are com...

3 years ago | 0

Answered
How to compile a program on linux to run on a distant Linux machine?
Hi, You can create standalone executables from MATLAB code using the Application Compiler App. This tool allows you to deploy ...

4 years ago | 0

Answered
how to fix ''Out of memory. The likely cause is an infinite recursion within the program. Error in rcca (line 12) rcca(nx,ny,A,k); ''
Hi, You are trying to implement the contour algorithm on the matrix. As the algorithm that you provided ( rcca ) is recursive,...

4 years ago | 0

Answered
How do I free memory dynamically allocated in a C function for use with MATLAB Coder?
Hi, I understand that you are using MATALB Coder to generate MATLAB equivalent C code. According to my understanding, MATLAB c...

4 years ago | 0

Answered
Comparing Two Data to find best match
Hi, I understand that you are trying to process the data x and y. Let us consider the data is stored in list y and matrix x. A...

4 years ago | 0

Answered
Multiple axis in simulink scope
Hi , Currently the plots in the Scope are limited by only one y-axis. You could show two different signals with different units...

4 years ago | 3

| accepted

Answered
How to truncate a binary number and else?
Hi, I understand that you want to implement truncate and round-off operations on binary numbers. Considering that the binary n...

4 years ago | 0

Load more