Community Profile

photo

Gaurav Garg


Last seen: ein Tag ago

MathWorks

54 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

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

View details...

Contributions in
View by

Answered
How to speed up the code using CODER (mex file generation) in numerical analysis simulation ?
Hey Kim, The speed-up factor would vary from application to application, and mainly because of the style of writing code. I wo...

ein Tag ago | 0

| accepted

Answered
How do I debug a .m -> .mex file in Visual Studio
Hi Arthur, I hope you are using 64-bit version of Windows OS and a 64 bit version of MATLAB to execute. Debugging mexw64 would...

ein Tag ago | 0

| accepted

Answered
How to implement Kalman filter on stored data set?
Hi, You can read the documentation for KALMAN filter here. For more examples, you can refer here.

ein Tag ago | 0

Answered
Shifting XY- coordinate system (normally known as left-hand coordinate system) from top left to conventional (right handed) coordinate system?
Hi, You can transpose the image and then work on it. image = image(end:-1:1,:) This will be equivalent to shifting the co-ord...

ein Tag ago | 0

Answered
Import multiple data files (.sto) together
Hi Sanchana, You can use genvarname to construct valid variable names. In your case, filename = genvarname ( files(i).name, wh...

2 Tage ago | 0

Answered
Convert subscripts to linear indices with dynamic matrix size
Hi Soan, You can loop over all the rows, which indicate subscripts and run sub2ind function; and store the results in an array....

2 Tage ago | 0

Answered
Compute probability of a logical/boolean expression
Hey Sara, You can make 2 separate symfuns, each for OR and AND operations, and evaluate the expressions. You can then directly ...

2 Tage ago | 0

Answered
How can I map this matrix into another coordinate system, so it can be added to a second matrix?
Hi, There are multiple functions you can refer to, to accomplish the task you are referring to. Kindly go through this link wh...

2 Tage ago | 0

Answered
Detect a single inflection point of the given.
Hi, You can take use of Symbolic Math Toolbox and functions inside it to find the inflection point for your problem.

etwa 2 Monate ago | 0

| accepted

Answered
tracking of a ball using kalman filter
Hey, Could you provide a link to the example you are talking about?

etwa 2 Monate ago | 0

Answered
how to reduce the running time (preallocate)
Hi, What could be a problem here is - You are assigning values to arrays which haven't been allocated any space beforehand. F...

etwa 2 Monate ago | 0

Answered
Crashing matlab job on server
Hey Nat, You can try updating the graphic card drivers to the latest version, re-installing MATLAB, checking the LICENSE file o...

etwa 2 Monate ago | 0

Answered
Plotting confidence interval with bar plot
Hey Amy, The grey shaded region seem to have varying y-values for the respective x-values. What is evident from your code is ...

2 Monate ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'predict'
Hi Alessandro The data types of the 2 arguments for predict function should be - A ClassificationTree or CompactClassificati...

2 Monate ago | 0

Answered
Taking 1d and 2d values from structure then interpolate
Hey Willibes You can run a loop and check if the values of deBF in a compare with those in b, and store them in the resultant a...

2 Monate ago | 0

Answered
History.xml strange behavior
Hey I wasn't able to reproduce the same issue on my system. I suspect the error would be because of some history files unable ...

2 Monate ago | 0

Answered
unable to perform tracking
Hey Chris You would want to run 2 loops - Iterating over all the datapoints, Running over the datapoints assigned to tracks ...

2 Monate ago | 0

Answered
An Algorithmic Problem for Mathematical Process
Hi, Can you share the snapshot of the forumlae for S again? It would also be better if you could explain what are you trying t...

2 Monate ago | 0

Answered
Basic Fitting tool not working
Hey Ran, You can try re-installing the 'Basic Fitting Tool'. You could also try by deleting R2020a folder in C:\Users\ \AppDa...

2 Monate ago | 0

Answered
How to do matrix indexing using for loop that involved sampling at time k?
Hey Eric Assuming that you have 2 arrays to start with (x1 and x2, as given in your question), you can declare an empty matrix ...

2 Monate ago | 0

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side. (using vpasolve)
Hey James Assuming that the equations written by you are correct, and ( (parenthesis) placed by you are fine too, the vpasolve ...

2 Monate ago | 0

| accepted

Answered
Addaxis function with bar plot added
Hi Eeleen You can use bar function to plot bar on the third axis. To plot bar, you need to give in axes as the first argument ...

3 Monate ago | 0

Answered
How to make code to split, compute mean, apply Softmax
Hi, You can use splitapply function to split your whole data into 9 groups and apply the mean function to each group. It would ...

5 Monate ago | 0

| accepted

Answered
How to predict course of a graph
Hi, Statistics and Machine Learning Toolbox and Curve Fitting Toolbox provide apps and functions for fitting curves and surface...

5 Monate ago | 1

| accepted

Answered
How can I curve fit more than one variable
You can use fit function (Curve Fitting Toolbox) to fit polynomials to data. Using fit, you can fit polynomials with degree less...

5 Monate ago | 0

Answered
RESIZE 3-D MATRIX
Hi, In your case, the original matrix has a total of 54,744,090 (447*370*331) elements, while the resultant matrix has 1,020,00...

5 Monate ago | 0

Answered
Finding intrinsic dimensionality of data set
Hi, latent (column vector) stores the eigenvalues of the covariance matrix of X. Executing cumsum(latent/sum(latent)) wo...

6 Monate ago | 0

| accepted

Answered
Parallel Plate Microfluidics velocity problem
Hi, Though you wish to plot a straight line, you have plotted (y^2) which means you are supposed to get a parabolic graph.

6 Monate ago | 1

Answered
Given two positions on a map, draw a straight line between them when a condition is met
Hi, Assuming that you have properly declared and defined posx and posy vectors (containing x and y coordinates of users) and ...

7 Monate ago | 0

Answered
Speeding up the computation
Hi, You can use parfor loop to run your for loop on multiple workers. However, parfor can only be used when there aren’t an...

7 Monate ago | 0

Load more