Community Profile

photo

Gaurav Garg


Last seen: 14 days ago

MathWorks

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 months ago | 0

Answered
How to parallelise sections of my for loop
Hi, Rather than using 4-6 for loops, you can try making a single for loop traversing through all the elements. For example - ...

2 months ago | 1

| accepted

Answered
Is this parfor fixable?
Hi Jacob, Apparently, you cannot subtract the loop index (within parfor loop) from any other scalar/vector quantity. As a work...

2 months ago | 0

Answered
how can i save the data after processing sequence of images?
Hey Shaik, You can save the data to a new file for each image rather than over-writing the '123.dat' file. For this, you can ...

2 months ago | 0

Answered
Computing the outer product (BLAS 2 operation) raised to the power k using the least number of flops
Hi Pascale, MATLAB supports LAPACK and BLAS functions/operations which can help you to reduce the number of FLOPS for your func...

2 months ago | 0

Answered
Why does the same data occupy different sizes in different storage methods in the .mat file?
Hi, The reason behind three .mat files being stored in different sizes is - MATLAB saves mat files after c...

2 months ago | 0

Answered
How to iterate a for loop starting from the previous element?
Hi Enrica, You should recheck lines 3 and 4 (o = find(times_biceps == ind33); o_previous = find(times_biceps == times_2r(i-1));...

2 months ago | 0

Answered
How can i develop a ball tracking application?
Hi Hemil, You can go through the documentation here to develop a cricket ball tracking application. This document would help yo...

2 months ago | 0

Answered
Plotting with lsqnonlin regression
Hi Valeria, You can look at the examples here to check how to plot and visualize the results.

2 months ago | 0

Answered
Remove number from a matrix within a for loop
Hey Elijah, You can replace the third element by [ ] in the script. Example - a = [1 2 3]; a(3) a(3) = [ ] What you would...

2 months ago | 0

Answered
Standardize data for regression learner
Hi, You don't need to specifically standardize the data for SVR model. However, you can use different preprocessing steps ment...

3 months ago | 0

Answered
Merging Multiple Point Clouds
Hi Tony, You should either register the two point clouds, or stitch the sequence of them. You can know more about stiching and ...

3 months ago | 0

Answered
Best practice for multiple Matlab session that want to call the same function from an .m file ?
Hi Both of the methods would work fine without any changes in function (output behaviour) and/or performance. That's because M...

3 months ago | 0

| accepted

Answered
Pcg and Parallel Computing Toolbox
Hey Rosalba, Using Parallel Computing toolbox for very small problems or for large number of threads can prove to be of no use....

3 months ago | 1

Answered
Parfor Data Collection in Matlab
Hi John, In order to achieve what you want (ending up with a table with 10 columns, in parallel manner), you can run the outsid...

3 months ago | 0

Answered
Parameters of multivariate multinomial distribution using Naive Bayes classifier
Hi Zeynab, You can refer to the example here to train naive bayes classifier using multinomial predictor. To visualize the dis...

4 months ago | 0

| accepted

Load more