photo

Harsh Sharma


Last seen: 3 days ago Active since 2024

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 2
  • 3 Month Streak
  • First Answer

View badges

Feeds

View by

Answered
How to create an custom Reinforcement Learning Environment + DQN agent
Hi Vartika To create a custom reinforcement learning environment and train deep Q-Network agent please follow the below steps:...

3 days ago | 0

Answered
Using tapped delays in the process of training an artificial neural network for the purpose of dynamic system modeling.
Hi Alirea, You can use a time delay neural network (TDNN) which is specifically designed to handle temporal sequences by using...

3 days ago | 0

Answered
Generating a C code DLL for an S-function with continuous states
Hi Vighnesh, The “RTWSolverInfo” and associated functions like “rtsiGetT()” are part of the Real-Time Workshop (RTW) infrastru...

3 days ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 months ago | 0

Load more