Community Profile

photo

Vimal Rathod


Last seen: 1 day ago

MathWorks

101 total contributions since 2019

I am an Application Support Engineer at Mathworks. My main responsibilities are supporting customers by answering in MATLAB Answers and also supporting developement teams at Mathworks.

My areas of interest are Simulink, MATLAB, Image processing, Computer Vision and Deep Learning.

DISCLAIMER: Any advice or opinions here are my own, and in no way reflect that of Mathworks.

Vimal Rathod's Badges

  • 3 Month Streak
  • Revival Level 1
  • Knowledgeable Level 2
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
How to convert text file to asci code ?
Hi, Once you read the text data from your file, you can convert text to binary by using dec2bin function. a = dec2bin("Some St...

2 months ago | 0

Answered
How do I avoid using if and else statements in this code
Hi, If your main goal is to remove the if else statements from the code, you can write the following code first and then write ...

2 months ago | 0

| accepted

Answered
How to find streaks in a categorical vector?
You can use "findgroups" function to make groups in Categorical Data. The function accepts the data as categorical data so you d...

2 months ago | 0

Answered
Why does textscan only read the first row of my text file?
Hi, Instead of using the below line, b = textscan(fileids{file},'%n %n %*n %*n %*n %*n %*n',-1, 'delimiter', '/t'); use this,...

2 months ago | 0

| accepted

Answered
How to vectorize this code? element wise to save time
Hi, As all the three for loops have some dependencies it is difficult to vectorize the code. you can try the following code, i...

2 months ago | 0

Answered
How to display temparature, pressure and altitude of the BMP 280 using Arduino (uno) on Matlab?
Hi, You have to establish an I2C channel connection after connecting the arduino and the required parameters like temperature, ...

2 months ago | 0

Answered
Stuck at MATLAB Onramp
Hi, The question is a bit ambiguos at start but if you look at the code carefully you will understand the each step. It asks y...

2 months ago | 2

Answered
Getting Matlab to read MMA8451 accelerometer sensor on arduino
Hi, Refer to the following link for more information on reading acceleration data from MMA8451 accelerometer sensor https://ww...

2 months ago | 0

Answered
How to use a machine learning model generated with matlab classifier learner in simulink
Hi, As you are ready with the model made in classification learner app, you have to export the model as a MATLAB function and t...

2 months ago | 0

| accepted

Answered
Plot in a script with three time series, each series has to be a different color
Hi, If you try to plot any two timeseries plots in the same plot using "hold on" you would always get plots with different co...

2 months ago | 0

Answered
find max value with for loop
Hi, You could use the following code snippet if you want to use for loops specifically to find max. max = B(1); for i = 2:num...

2 months ago | 0

Answered
An Understanding Of The Steps For A Real TIme Human Activity Recognition Surveillance System
Hi, The following links contains examples of Human activity recognition. https://www.mathworks.com/help/stats/human-activity-r...

2 months ago | 1

| accepted

Answered
NARX neural network - how to use different time series for train, validation and testing the network?
Firstly, You can train the model without using divideblock and supply your own testing and validation data(It is not a compulsio...

4 months ago | 0

Answered
Index in position 3 exceeds array bounds (must not exceed 1).
Going through the comments it is evident that when calling S(ID,ID,ID) = S(ID,ID,ID) + K; The size of S(ID,ID,ID) is 4*4*4 an...

4 months ago | 1

Answered
How to programmatically stop simulation when output converges
You could use a Stop Simuation Block to stop the simulation by defining a condition which you want to satisfy before stopping th...

4 months ago | 0

| accepted

Answered
How the RL agent knows that it has to provide 'action' as 'FLOW' because none of my input or observations is flow? What decides the output of action?
Hi, The details are given properly in the link which you have sent. In the example, input is a scalar variable which indicates ...

4 months ago | 0

Answered
Problem with a LSTM network
Hi, The small problem with your code is that you are not putting the dimensions of the SesnorsTrain and MachineStatusTrain prop...

4 months ago | 0

Answered
Displaying MSE values at training,validation and testing ratios
Hi, Below is a link to similar question which could be of your use. https://www.mathworks.com/matlabcentral/answers/405606-how...

4 months ago | 0

Answered
how to get an output from this dialog box?
You could use a Global variable, assign that variable in the callback function and you could retrieve the variable in your progr...

4 months ago | 0

Answered
sir please explain me how to form network and training for INSTANCE segmentation
Hi, You could refer to the following link and get to know more about how to do a normal semantic by using your data, creating a...

4 months ago | 0

Answered
callback for pushbutton in a gui to solve a Karnaugh Map
You could refer to the following link to know more about how to create push button callbacks. https://www.mathworks.com/help/ma...

4 months ago | 0

Answered
Array indices must be positive integers or logical values.
Hi, Using the following lines decreases the pos value to less than 1, Thus the MATLAB throws an error. From your given code, a...

4 months ago | 0

Answered
Apparent bug when images.ROI is placed within an hggroup
I have heard that this issue is known to the concerned developers and the issue will be resolved in 2020a release. As a work aro...

5 months ago | 0

| accepted

Answered
Ecompass algorithm and Kalman Filter
To use the kalman filter to analyze the signals you first have to create a state-space model which will be directly passed with ...

5 months ago | 0

Answered
Saving multiple runs within a neural network
It seems the outputmat does not depend on the k value of your "for loop" and thus it is updating the same values in the loop. Y...

5 months ago | 0

Answered
Undefined function 'voltageRead' for input arguments of type 'double'.
It seems like you have used voltageRead instead of readVoltage function.

5 months ago | 0

Answered
Handling imbalanced data with patternnet
Hi, To weight the errors during training, one can specify the "error weights" (EW) property in 'train', see here: https://www....

5 months ago | 0

| accepted

Answered
Deep Q Learning to Control an arm model
Your network seems fine and I am hoping you have set your hyper parameters properly. Coming to the rewards, when you start train...

7 months ago | 0

Answered
Subscripted assignment dimension mismatch error in kinematic analysis of a 1 DOF mechanism
You could try initializing fa varible with zeros using "zeros function" before assigning it to the above expression in your code...

7 months ago | 0

| accepted

Answered
Planet Orbit- Dormand Prince Algorithm
You could try debugging your code by putting a breakpoint on the line of error and check if the concerned variables are defined ...

7 months ago | 0

Load more