Community Profile

photo

Gaurav Garg


Last seen: 2 days ago

MathWorks

103 total contributions since 2019

I am an Application Support Engineer at Mathworks, Hyderabad.

My main interests include Machine Learning, Parallel and Concurrent Programming, Wireless Networks.
DISCLAIMER: Any advice or opinions here are my own, and in no way reflect that of Mathworks.

Gaurav Garg's Badges

  • Knowledgeable Level 3
  • Revival Level 2
  • 6 Month Streak
  • First Answer

View details...

Contributions in
View by

Answered
Viterbi algorith for trellis traceback
Hi Mohamad, You should try printing individual arrays [2,1]+i and [(0:7)',S(:,2+i)-1]' and ensure that the array sizes are same...

2 days ago | 0

Answered
Arrange images from a video in a 2 row 3 column grid to print on a piece of A4 paper
Hi Pieter, You can use subplot function to arrange the images in a 2x3 grid (documentation). Further on, you can print the doc...

7 days ago | 0

Answered
how to compute and plot mean square error for two vectors?
Hi Deepak, You can plot MSE/Loss and accuracy for each iteration of your training/testing. To do this, you can make a network ...

9 days ago | 0

| accepted

Answered
Mathworks example A* pathfinding algorithm problems
Hi Rhys, You can find a few examples of A* algorithm implentation in MATLAB from here - link1 and link2. You can make changes ...

22 days ago | 0

Answered
K fold validation for feedforward net
Hi Abdulaziz, cvparition partitions data for cross-validation. It defines a random partition on data set and uses it to define ...

22 days ago | 0

Answered
For loop error: unable to perform assignment because left and right sides have a different number of elements
Hi, You can plan to use either Structure array, or a Cell array. You could have also constructed variable name from string, how...

24 days ago | 0

| accepted

Answered
Is this code for plotting linear regression in loglog scale and confidence intervals correct?
Hi Gianluca, Yes, the code seems to be correct. Moreover, you can look at the documentation on how to train/test data using l...

24 days ago | 0

| accepted

Answered
create a gif or video using this sequence of figures
Hi, Apart from all the resources provided in the comments above, the below links would surely help you - 1.) Link 1 2.) Link ...

24 days ago | 0

Answered
Reinforcement Learning Toolbox RAM increment
Hi Tech, The RAM utilization is expected to increase significantly. This is because there are multiple number of complex mathe...

24 days ago | 0

Answered
what is the infoC?
Hi Akmal, On doing a quick seach in the code directory of MATLAB, I found that there is no such package or line of code mention...

24 days ago | 0

| accepted

Answered
Matlab compiler - splash screen quality
Hi Jonas, The first thing you can try is to change the splash screen itself. You can find the code here. Then, you should try ...

25 days ago | 0

Answered
function lla2flat in R2020a
Hi, You can look into the references for the function lla2flat for any information.

25 days ago | 0

Answered
Can't train a custom neural network
Hi Alessandro, For any information on using U-Net in MATLAB, you can find the documentation here. Since you are planning to u...

25 days ago | 0

Answered
indexing with cells (need specific value in all the rows of a column
Hi Scott, While using tx_data{:,6}(3,:), you were expected to get an error. That's because intermediate brace {} indexing produ...

25 days ago | 0

Answered
Adding values to cells as the indices increase
Hi Holmbrero, I understand that you wish to add multiples of constants to each row. I am providing with a pseudo-code to help y...

25 days ago | 0

| accepted

Answered
Creating automated multiple variables to store excel table in a loop
Hi Naman, You can use readtable function to create table from an excel file and then create a loop e.g. - for i = 1:3 dat...

3 months ago | 0

| accepted

Answered
Superimpose the graph of a function onto a streamline field
Hey David, You can try using hold on function. One such example can be found here.

3 months ago | 0

| accepted

Answered
Getframe very slow in loop
Hey Manav, getFrame captures the whole frame of the current figure and saves it into a struct. So, it is expected to take this ...

3 months ago | 0

Answered
Counting the number of fine bubbles in a glass bottle/container
Hey Darwin, Kindly look at one such similar question and the suggested answer here which, in turn, would lead you to the follow...

3 months ago | 0

Answered
Where can I find practical examples of unsupervised image super resolution?
Hey Nour, This is an example of supervised image super resolution. You can refer to it, can modify it according to your use cas...

3 months ago | 0

Answered
How to associate a variable according to the .mat file name
Hey, I assume that you already know the value of 'Nt' and stored the value in nt. char (nt + 'a' - 1) would return you the fi...

3 months ago | 1

Answered
How do I change the economy to Matt Lab Code?
Hi, You can refer to the link here for MATLAB version of counting sort.

3 months ago | 0

Answered
How to select select specify characterist for cluster ?
Hi Catalina, Assuming that the equation of your line is of the form y = mx + c. The equation can now be rewritten as y - mx - ...

3 months ago | 0

Answered
I would like to know what is thendifference between generating a code using Quick Start o using Code Generate Advisor
Hi Unai, Starting with generated code - MATLAB can produce C/C++ code and executable programs for your algorithms. You can writ...

3 months ago | 0

Answered
Debugging in application problem
Hey Berkay, This seems to be the expected behvaiour of the debugger. For the case in figure 1, I hope that the values in the v...

3 months ago | 0

| accepted

Answered
PCA Plot Script/Synthax
Hi, As can be seen in scatter3(Values(:,1),Values(:,2),Values(:,3), 20, y, 'filled') You are trying to plot y, which repres...

3 months ago | 0

| accepted

Answered
How do I plot the centers of stitched images?
Hi Elie, I would like to tell that the thing you are looking to do here is to have a perfect alignment. However, when you regi...

3 months ago | 0

Answered
fitnlm either runs perfectly or crashes with nearly identical data
Hi Clay, The roots returned in the latter case (fitnlm_broken.m) are imaginary, hence, you receive the error "JW must be scalar...

3 months ago | 0

| accepted

Answered
Out of memory error when calling the same function in a for loop many times
Hi Yang, As the error suggests, you have exhausted all your memory when you try to run this function in a loop. I would advise...

3 months ago | 1

| accepted

Answered
Classification Learner App k-Nearest Neighbor k-NN
Hi, The accuracy for any ML model (including KNN) is decided by mutiple factors, one of which is the dataset and its features. ...

3 months ago | 0

Load more