Answered
Errors with ext_work.c file generated with Simulink Coder
Hi Matthew, There is not any issue with the curly brackets in the generated code while it may appear so because of the error ...

2 months ago | 0

Answered
Invalid data type struct_eWYRzewnxs6WT01sFpzdQB.
Hi Tushar, There could be several reasons for the error you are facing. To debug and resolve the issue, please follow the fol...

2 months ago | 0

Answered
Optimization of Various Circuit Topologies in Power Electronics using MATLAB Machine Learning and Deep Learning Functions
Hi Silumin, To get a good grasp over power electronics in Simulink please take a look at the following self-paced course in w...

2 months ago | 0

Answered
How can I call a .C function compiled with Matlab Coder in R?
Hi Arsalan, Proceed with the steps outlined below to call the C function generated by MATLAB coder in R using .C( ) – Modi...

2 months ago | 0

Answered
Is there some way to display the resaults in System Generator?
Hi Zoran, According to my understanding of the question you want to view results from Xilinx System Generator blocks in Simul...

2 months ago | 0

Answered
Is there a way to define the name of generated C++ classes when using Simulink Coder with an slrealtime target?
Hi Tom, You can change the name of the files and classes in a limited manner only. Please follow the below steps to do so - ...

2 months ago | 0

Answered
Training neural network output and weight
Hi Ananda, It is expected behavior for the performance (MSE) and number of epochs to vary between runs when training a neural...

3 months ago | 0

Answered
Pressure_Transducer to a definite value, for example by connecting an appropriate domain reference block.
Hi Julieth, Connect an Electrical Reference block to the output of Pressure Transducer block to resolve the error ‘Tie variab...

3 months ago | 0

Answered
how to create an ANN multiclass?
Hi Lyes, You can use “patternnet” to create feed forward neural network that can be trained using the “train” function to cla...

3 months ago | 0

Answered
How to classify the image using SVM training with trainset?
Hi Rohullah, Feature extraction is an important step in machine learning that involves transforming raw data into a set of nu...

3 months ago | 0

Answered
Is 'Scale Linear Verbal Table Conversion' type of computation method support in MATLAB Simulink?
Hi Hongliang, You can only import CompuMethods of categories IDENTICAL, LINEAR, TEXTTABLE, BITFIELD_TEXTTABLE, SCALE_LINEAR_A...

3 months ago | 0

Answered
How I can choose best optimizer for deep learning model?
Hi Mosalam, Hyperparameter tuning is the process of selecting the best set of hyperparameters for a learning algorithm. There...

3 months ago | 0

Answered
Imbalance in sequence-to-sequence classification
Hi Cedric, You can use a weighted cross-entropy loss function in the “trainnet” function to handle the imbalance in dataset. ...

3 months ago | 1

| accepted

Answered
3D LiDAR Simulink Simulation
Hi Daniel, You can use the “simulation 3D Lidar” block to get an interface for the lidar sensor. The block returns a point clo...

4 months ago | 0

Answered
I don't understand why simulink can't find my model to generate estimation code
Hi Kodjovi, MATLAB is unable to find the model ‘battery_model_for_estimation’ because it must not be in your current working d...

4 months ago | 0

Answered
How to open .lmf file
Hi Akmal, You can use “fread” function to read a binary file in MATLAB. Below is the code to read data in the format menti...

4 months ago | 0

| accepted

Answered
Use the DCT to interpolate the images
Hi Nabiha, From my understanding of the question, you want to interpolate the original image by a fixed constant factor. You ...

4 months ago | 0

Answered
how to save pcap file after extracting groud plane
Hi Pavan, PCAP is a file format used to store network packet data captured over a network. In MATLAB only the following packe...

4 months ago | 0

Answered
Circle the edges of the picture
Hi Ozhan, You can get the coordinates from the edges using the “find” function. From there it’s possible to iterate over the ...

4 months ago | 0

Answered
save a movement as a video
Hi sarah, You can use the “getframe” function to capture the current axes or a figure. Then use “writeVideo” function to write...

4 months ago | 0

Answered
how to write and read the modbus rtu registers in simulink?
Hi Adarsh, According to my understanding of your question, you receive a datatype error when you try to take data as input ar...

4 months ago | 0

Answered
Error using plot Vectors must be the same length. Error in Untitled3 (line 125)
Hi Paulino, The error you are encountering is because of the difference in size of the “z” and “S” vectors in your code. You ...

4 months ago | 0

Answered
How can I take into account gaps in joints (planar mechanism, multibody)?
Hi Alexandr, "While "Simscape Multibody" does not have a dedicated block specifically designed to model a gap, you can use spr...

4 months ago | 0

Answered
Interpolate YZ, ZX and XY antenna polar data into 3D antenna radiation pattern
Hi Vincent, Using the “phi”, “theta” and “power” data values that you have, you can use the following file from MATLAB File E...

4 months ago | 0

Answered
How to 1. view a .lyrx file as a "heat map"? 2. Import the .lyrx file into a 2-d matrix?
Hi Erez, The layer file (“.lyrx”) is not supported in MATLAB. As a workaround you can export the layer file to a supported fo...

4 months ago | 0

Answered
Simulink Real-Time C API with python, TCP/IP ERROR
Hi, The error you are encountering indicates an issue with writing data over TCP/IP. This could be due to several factors suc...

4 months ago | 0

Answered
Is there a way for a worker to see how many workers are in the parpool?
Hi Bobby, The “pctRunOnAll” command runs the specified code on all workers. So in your code the command “pctRunOnAll NumWorke...

5 months ago | 0

Answered
FFT w.r.t time and space
Hi Srikanth, You can use the “fft2” function to simultaneously transform the data from the time-space domain to the frequency...

5 months ago | 0

Answered
how to do PCA for sequance alignment using 2018 version?
Hi Khatab, The error you are facing is because of the invalid datatype of “ma” variable in your code. The “pca” function take...

5 months ago | 0

Answered
Connect Matlab to Unity 3D
Hi Mariam, You can use TCP/IP sockets to send data between MATLAB and Unity3D.  In MATLAB, you can use functions like “tcpcli...

5 months ago | 0

Load more