Community Profile

photo

Gaurav Garg


Last seen: Today

MathWorks

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

etwa 8 Stunden ago | 0

Answered
Time in While and Intergrator
Do you want the system time? You can take use of clock function or fprintf('The time is %s\n', datestr(now,'HH:MM:SS.FFF'))....

ein Tag ago | 0

| accepted

Answered
Why won't jsonencode encode my entire structure array?
Hey Andrew, You can divide your data into small chunks and then enode those chunks (one-by-one) into a JSON file (using jsonen...

ein Tag ago | 1

| accepted

Answered
Trouble using readgeoraster and mapshow
Hey Michael, You can specify the size of maximum array under 'Preferences'. Kindly refer to the doc here to do so.

ein Tag ago | 0

Answered
Matlab Coder: Table Variables Must be constant
Hey Robert, To index into a table using variables names, first make the table constant by using the coder.Constant function. B...

ein Tag ago | 0

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

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

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

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

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

4 Tage ago | 0

| accepted

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

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

4 Tage ago | 0

| accepted

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

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

4 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

Load more