Community Profile

# Gaurav Garg

### MathWorks

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

View details...

Contributions in
View by

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

27 days ago | 0

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

2 months ago | 0

| accepted

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

2 months ago | 1

| accepted

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

2 months ago | 0

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

2 months ago | 0

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

4 months ago | 0

| accepted

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.

4 months ago | 0

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

4 months ago | 0

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

4 months ago | 0

I have two cell arrays and I want to compare which element from the first array has similar words in the second array
Hi, You can use strcmp function to compare 2 strings. To solve your above problem, you can run a loop on array1 and another...

4 months ago | 0

| accepted

Display specific element of MATLAB table in bold?
Hi, You can create a cell array of paragraph and then convert the desired elements to bold. You can refer to the below code: ...

4 months ago | 0

How to detect skin region in YCbCr color space?
Hi, You can use ‘Color Thresholder’ app provided in the Image Acquisition Toolbox. After loading the image from a file/wor...

5 months ago | 1

| accepted

How do I extract the pixels of yellow pixels,purple pixels from the image and display it in a white image?
Hi, You can use ‘Color Thresholder’ app provided in the Image Acquisition Toolbox. After loading the image from a file/work...

5 months ago | 0

Convert Struct to Readable JSON(Pretty Print)
Hi, You can find a function which can help you resolve the problem you are facing in this file.

6 months ago | 0

Out of memory while training
Hi, Consider using ‘MiniBatchSize’ and 'ExecutionEnvironment' as arguments in trainingOptions. Using ‘MiniBatchSize’, you ...

6 months ago | 0

How can i recording audio immediately?
Hi, Given below is a command which will open example for you which will help you record the audio immediately. openExample(...

6 months ago | 0

How to open this example
Hi, Type ee_motor_stepper_preparameterization in MATLAB command window. Ensure that you are using MATLAB R2019b for this...

6 months ago | 0

How to obtain all the bar graphs. My code only gives one bar graph even though I have written a code to get four bar graphs.
Hi, bar(y) creates a bar graph with one bar for each element in y. In your case, you plot the bars on top of each other and he...

6 months ago | 0

What is best way to define 2 way dependence between class properties
Hi, Assuming you are using MATLAB R2019a, you can set a property in other property’s set method, though it shows a warning. S...

8 months ago | 1

Read Text File and extract audio value
Hi, I understand that you wish to extract audio from the given text file. You can use importdata function to read the file...

8 months ago | 0

Reading multiple columns of an excel sheet to output a range of values. Please see the example
Hi, I understand that you wish to look for output of other columns as well. What you can try doing is to write a loop which...

8 months ago | 1

| accepted

Open and closed dots for endpoint
Hi, You could refer to the below code: P=[0 2 1 4 2 6 3 8 4 10 5 12 6 14 7 16 8 18 9 20 10 ...

8 months ago | 1

| accepted

Does ValidationData in trainingOptions influence training progress
Hi, The ValidationData in trainingOptions does not have any influence in training progress. In actual, validation set is use...

8 months ago | 0

| accepted

problem with the name and colors of function bar
R1=[0.653368446507723 0.679697416448178 0.498095754312123 0.769842809543479 0.548071337734980 0.741418460004374 0.14430950893666...

8 months ago | 0

ARIMA comparison results between Matlab and Eviews
Hi, The ARIMA model and regARIMA model are completely different. ARIMA model is a linear time series model for a univariate r...

8 months ago | 0

| accepted

How to analyze one image 100 times using for loop?
Hi, I understand that you wish to analyze each frame separately. However, there’s some problem in the code you have written. ...

8 months ago | 0

| accepted

Problem with completion of Matlab Onramp
Hi, As far as I know, you have left out filling the feedback form for MATLAB ONRAMP training.

8 months ago | 0

Is it possible to call from Matlab (with py) a Python code that itself call a Matlab function through matlab.engine ?
Hi, In my understanding, what you are trying to do is to execute a python code file in a MATLAB script. However, MATLAB provid...

8 months ago | 0

Is it possible for parfor workers to keep data in between iterations?
Hi, To save yourself from sending data back and forth for the worker threads, you can make a temporary array of cells which st...

9 months ago | 0

| accepted