Community Profile

photo

Anmol Dhiman


Last seen: 1 day ago

MathWorks

105 total contributions since 2019

I am an Application Support Engineer 2, Engineering Development Group at MathWorks.
Disclaimer: Any advice or opinions here are my own, and no way reflect that of MathWorks .

Anmol Dhiman's Badges

  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
global variables in fmincon
Hi Philipp, Global variables are used to share a single value among various functions. There are many other ways to do. You ...

2 months ago | 0

| accepted

Answered
Tracking of a point in a sequence of images to measure linear displacement
Hi Ammar, Computer Vision Toolbox™ provides video tracking algorithms, such as continuously adaptive mean shift (CAMShift) and ...

2 months ago | 0

Answered
Custom error messages with Class Object
Hi Michael, The above functionality can be achieved using Exception Handling. You can modify the error displayed by catching th...

2 months ago | 1

Answered
Unable to set breakpoint
Hi Martin, This may be related to an issue with the caching. Try running the following commands, and then try debugging again...

2 months ago | 0

Answered
Can I call R function in Matlab?
Hi, You can refer to the below link. https://www.mathworks.com/matlabcentral/answers/231000-how-to-run-an-r-function-from-matl...

2 months ago | 0

Answered
The base of logarithm when using camresponse function
Hi Varis, LOG(X) is the natural logarithm of the elements of X used in camresponse.m. Thanks, Anmol Dhiman

2 months ago | 0

Answered
How to calculate acceleration between two cells from data using for...end
Hi Favour, I am assuming x and y are vectors(arrays). For each time interval you are calculating acceleration(y11). YOu can fol...

2 months ago | 0

Answered
How do I make the Pin I select a variable
Hi Cole, It is evident that the error seems to be in setgrad function. Inside setgrad, you are calling multiple functions. THe ...

2 months ago | 0

Answered
Plot a time-depth saturation contour graph
Hi Ko, The attached code might help you. contour requires x,y coordinates to be matrix (see Input arguments). You can use surf ...

3 months ago | 0

Answered
What's the best approach as far as tools packages for a program involving a city map?
Hi, I am assuming that you just want to find strainght line path between the two points. You can use the Mapping Toolbox for ...

3 months ago | 0

Answered
How do I save and load an app session?
Hi Par, You can save the objects as mentioned in the steps in below link. https://www.mathworks.com/matlabcentral/answers/3204...

3 months ago | 0

Answered
Copying specific lines from multiple cvs file to a single file
Hi Steliana, You can use readtable to read data from csv and then use join to merge data from all the csv files. Thanks

3 months ago | 0

Answered
How to obtain surfaces below the 3d plots
Hi Sanoop, You can create surface plots using surf(link). The above problem can be solved using different colors for each plot....

3 months ago | 1

Answered
Save segmented CT images into new folder
Hi Eisa, You can refer to dicomwrite. Thanks

3 months ago | 0

Answered
Convert c++ file to mexa
Hi, Follow the below link for the procedure. You need to follow specific guildlines in order to convert a C++ file into MEX. ...

3 months ago | 0

Answered
How can I segment this image ?
Hi, The above image cannot be solved using the automatic Thresholding and basic image segmentation techniques. Try using Deep ...

3 months ago | 0

Answered
How do I use lsqnonlin?
Hi, According to my understanding, the correct function is Iscurvefit. Follow the below links for the same. https://www.mathwo...

3 months ago | 0

Answered
OLS with dummy variable
Hi , You can follow the below link for starting https://www.mathworks.com/help/matlab/data_analysis/linear-regression.html ...

3 months ago | 0

Answered
using same for loop but with different input
According to my understanding you can save you code in one function, for eg myfunction. You can create two arrays, one for alpha...

3 months ago | 0

Answered
How to plot loglog graph of error vs number of elements in matlab for boundary value problem for dirichlet condition (or any)?
Hi Biswabhanu, You can use semiology to plot the error vs number of elements. I have tried to reproduce the plot along with th...

4 months ago | 0

Answered
How can I split a matrix into 4 regions?
Hi Mariana, You have not mentioned about the criteria of splitting. So, I am assuming that is based on the values of the elemen...

4 months ago | 0

Answered
How to change the number of digits in a clabelm?
Hello Christopher, Unfortunately, ”clabelm” cannot be used directly to achieve this functionality. Unfortunately MATLAB updat...

4 months ago | 0

Answered
How can I get predictorImportance in crossvalidated ensemble ?
The error received is indicative of the issue. For trees of the class ClassificationPartitionedEnsemble, you cannot use predicti...

4 months ago | 0

Answered
Automated object recognition within thermographic images
Hi Berg, Follow the below link https://www.mathworks.com/solutions/image-video-processing/object-recognition.html For more in...

4 months ago | 0

Answered
Writing a code on user input polynomials
Hi Lewis, You can refer to below link for implementation of Polynomials in MATLAB. https://www.mathworks.com/help/matlab/math/...

4 months ago | 0

Answered
()-indexing must appear last in an index expression.
In the second last line you have written spikes.times(1,i) twice without any operator between them. This is causing the error. ...

5 months ago | 0

Answered
Saving double without overwriting in nested For loop
Assuming the size of all IndividualGaveFinal matrices are same, i.e. 673x21 double. You can use cell array to store the individu...

5 months ago | 0

Answered
Coupon Collector Problem Code
There is nothing wrong with the logic. I have tried the code and found it to be correct. I have tried examples from below link. ...

6 months ago | 0

Answered
CNN: Digit Classification (example by ML)
The above network is trained for 10-digit classes only. If any other random image is given to the network as in the above case, ...

6 months ago | 0

| accepted

Answered
Help animating a 2D line plot from
Follow the below links for the plotting an animating line. https://www.mathworks.com/help/matlab/ref/animatedline.html https:/...

6 months ago | 0

Load more