Community Profile # Prateek Rai

### MathWorks

Last seen: 6 dagar ago Active since 2020

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

All
• • • • • • • #### Content Feed

View by

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

8 dagar ago | 0

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

10 dagar 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 =...

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

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

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

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

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

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

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

28 dagar 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^...

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

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

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

Solved

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

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

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.

Solved

Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

Solved

Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

Solved

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

Solved

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

Solved

Return area of square
Side of square=input=a Area=output=b

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

Solved

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...