# Prateek Rai

### MathWorks

I am a Associate Application Support Engineer at MathWorks. My major responsibilities are Image Processing, Lidar Processing and Deep Learning at MathWorks

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

**Statistics**

RANK**562**

of 258,239

REPUTATION**108**

CONTRIBUTIONS

**0** Questions

**83** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**6**

RANK

of 17,799

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Feed Forward Recurrent Neural Network: Use output of Iteration 1 as Input for Iteration2

Hi, You can use "feedforwardnet" function to generate feedforward neural network. Along with it, you can use "layrecnet" functi...

2 months ago | 0

overfiitting during CNN training

Hi, You can try specifying different training options for training the deep learning neural network. Refer to trainingOptions M...

2 months ago | 0

| accepted

Output doesn't seem right

Hi, The output does not seem right because you are mixing 2 things together. In the line 41 and line 42 of your code you are do...

2 months ago | 0

How do I pre-process and process non-image data for Deeplearning?

Hi, You can refer to "Signal Processing Applications" section of the following Preprocess Data for Domain-Specific Deep Learni...

2 months ago | 0

I can't install simscape multibody link

Hi, Refer to the following MATLAB Answer: Simscape Multibody installation error to know more about possible workaround for solv...

2 months ago | 0

Can anyone help me with this?

Hi, You can refer to following MATLAB Answer on How do I resolve a MATLAB installer fail with an error related to a lxe_win64 o...

2 months ago | 0

save m.file as PDF

Hi, To my understanding, you want to save multiple figures in pdf. You can use "exportgraphics" function to save plots/figures...

2 months ago | 1

My network is returning both 100 percent training and validation. What seems to be the issue?

To my understanding, you are trying to train the network and the network is returning both 100 percent training and validation. ...

3 months ago | 0

Matlab is not recognizing that two floats are equal although Workspace shows they are

You can refer to following MATLAB Answers on Why two equal numbers are not equal? to get more idea on why MATLAB is not recogniz...

3 months ago | 0

Unable to perform assignment because the left and right sides have a different number of elements.

To my understanding, you want to plot w, Pc and F as functions of time follwing an interactive process. You are getting an erro...

3 months ago | 0

| accepted

how to train LSTM with single input and two outputs?

To my understanding, you want to train LSTM with two outputs. You can refer to MATLAB Answer on LSTM Example for Multi input an...

3 months ago | 0

Training Network stopping automatically after 3 iteration without showing any error.

Hi, Training of the network stopped because training loss is NaN. This implies that the predictions using the output network mi...

3 months ago | 0

Using solve command, to solve user defined function

Hi, You can use "syms" to create symbolic function with four arguments: syms f(a,b,c,d) here, f is abstract symbolic functi...

3 months ago | 0

converting classification network to fully convolutional with arbitrary sized image

Hi, One possible workaround could be that you can first use the whole image and find the potential patches of size 32x32x3 wher...

6 months ago | 0

hi there can anyone help me, i have problem in reading the excel file using the csvread command

Hi, Using "csvread" to read comma-separated value (CSV) file is not recommended.Use "readmatrix" instead. You can refer to rea...

6 months ago | 0

question about R-CNN stop sign detection

Hi, (1) First part So we first loaded the ground truth and displayed the summary using: % Load the ground truth data data =...

6 months ago | 1

| accepted

CNN, resnet50 - plot accuracy

Hi, There are 2 facts about the code which is important to note: (1) Since, your dataset is big that is why it is taking more ...

6 months ago | 0

| accepted

how to make pictures in subplot to same size?

Hi, You can refer to the following MATLAB Answer post on "How to plot all images to same size in subplot" to get more idea.

6 months ago | 0

plot in same graph from a loop

Hi, You can try "hold on" to retain current plot when adding new plot. Refer to hold MathWorks documentation page to learn mor...

6 months ago | 0

How to plot the complete data in a structure

Hi, You can try "hold on" to retain current plot when adding new plot. The code will look like: figure for m = 1 : 9 ho...

6 months ago | 0

| accepted

Double loop sort and group results in one matrix

Hi, A possible workaround to solve the problem could be: Z = zeros(100,100); L = length(X); for i=1:L for j=1:L ...

6 months ago | 0

Was doing some MATLAB homework and couldn't get a graph to come up just a table was looking for some help.

Hi, You can use the "figure" function before "plot" to create a figure window for your graph. Your code will look like: figu...

6 months ago | 0

Neural Network: Which patterns of the TrainSet does my network ACTUALLY train with?

Hi, First of all, 1000 epochs do not mean that only 1000 patterns are used to update the weights. 1 epoch completes when all ...

7 months ago | 0

How to set up a repeating series of terms

To my understanding, you want to set up a repeating series of terms so that, Xt = [ones(t-h+1,1), Lt*yt, Lt^2*yt, ... Lt^...

7 months ago | 0

Classification neural network - single image or datastore

To my understanding, you are using two methods that ideally should yield the same result but on implementation getting different...

7 months ago | 0

why I get error in scalar portion?

Hi, You should first check for the scalar portion and then for other conditions. Additionaly, you should also check for: if n...

7 months ago | 0

Solved

Magic is simple (for beginners)

Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

8 months ago

Solved

Roll the Dice!

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

8 months ago

Solved

Make a random, non-repeating vector.

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

8 months ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

8 months ago