I am an Associate Application Support Engineer at MathWorks.

My areas of interest are Deep Learning and Computer Vision.

DISCLAIMER: The advice and opinions here are my own and not in any way that of MathWorks.

Answered

How I can use the matlab coder to convert my matlab code to C language? what is the MEX function can any body explain for me.

MEX files are like an interface between matlab and code written in C/C++ or FORTRAN. You can use the 'mex' command to compile so...

How I can use the matlab coder to convert my matlab code to C language? what is the MEX function can any body explain for me.

MEX files are like an interface between matlab and code written in C/C++ or FORTRAN. You can use the 'mex' command to compile so...

2 days ago | 0

Answered

Fuzzy Logic cannot delete input and output variables in Matlab 2018b

Yes, this appears to be a bug. The developers were already notified of this issue and it was fixed in R2019a.

Fuzzy Logic cannot delete input and output variables in Matlab 2018b

Yes, this appears to be a bug. The developers were already notified of this issue and it was fixed in R2019a.

3 days ago | 0

Answered

Calculate mean of an array in time windows.

I'm not sure how you have arranged your data within the matrix 'EEG' - which dimensions correspond to which attributes? I not...

Calculate mean of an array in time windows.

I'm not sure how you have arranged your data within the matrix 'EEG' - which dimensions correspond to which attributes? I not...

3 days ago | 0

Answered

How to perform Indexing

Hi Larissa, The goal of this forum is to help solve generic MATLAB questions, not to provide full solutions to anybody's homew...

How to perform Indexing

Hi Larissa, The goal of this forum is to help solve generic MATLAB questions, not to provide full solutions to anybody's homew...

6 days ago | 0

Answered

How to write 2 functions both in 2 variables that will be the objective functions of a Multi-objective Genetic Algorithm?

Hi Andrea, I think your approach with the 'multiobjective' function is wrong. The input 'FitnessFunction' should be returnin...

How to write 2 functions both in 2 variables that will be the objective functions of a Multi-objective Genetic Algorithm?

Hi Andrea, I think your approach with the 'multiobjective' function is wrong. The input 'FitnessFunction' should be returnin...

24 days ago | 1

Answered

Finding Shortest Path Without Crossing Restricted Areas

I suggest implementing the Dijkstra's algorithm for this problem. An explanation is found here: https://en.wikipedia.org/wiki/Di...

Finding Shortest Path Without Crossing Restricted Areas

I suggest implementing the Dijkstra's algorithm for this problem. An explanation is found here: https://en.wikipedia.org/wiki/Di...

25 days ago | 0

Answered

Matrix multiplication between 2d matrix and slice of 3d array

Hey Morten, You can check out 'MULTIPROD' - from File Exchange (linked below). It covers your requirements exactly, https://i...

Matrix multiplication between 2d matrix and slice of 3d array

Hey Morten, You can check out 'MULTIPROD' - from File Exchange (linked below). It covers your requirements exactly, https://i...

25 days ago | 1

| accepted

Answered

"NumBins" error when using fitcsvm, setting at least one hyperparameter to optimize, and specifying Nu

Looks like there is a bug here. I have brought this issue to the notice of our developers. They will investigate the matter furt...

"NumBins" error when using fitcsvm, setting at least one hyperparameter to optimize, and specifying Nu

Looks like there is a bug here. I have brought this issue to the notice of our developers. They will investigate the matter furt...

2 months ago | 1

| accepted

Answered

How to get the gradient with respect to the output of a specific layer in a deep learning model?

You could try looking at the source code for the fullyConnectedLayer that you're using; and then customizing that code to return...

How to get the gradient with respect to the output of a specific layer in a deep learning model?

You could try looking at the source code for the fullyConnectedLayer that you're using; and then customizing that code to return...

2 months ago | 0

Answered

Change the name of a table located in my workspace inside a for loop

Dynamically changing variable names is not advised, I think you should try storing the data in multiple different tables.

Change the name of a table located in my workspace inside a for loop

Dynamically changing variable names is not advised, I think you should try storing the data in multiple different tables.

2 months ago | 0

Answered

How do I create a vector from a for loop with different intervals?

Hey Josefine, Everytime MATLAB executs the line p1(i) = p1(i) It prints the result, which in this case is the entire vector...

How do I create a vector from a for loop with different intervals?

Hey Josefine, Everytime MATLAB executs the line p1(i) = p1(i) It prints the result, which in this case is the entire vector...

2 months ago | 0

Answered

Swapping any pair of elements

Try this: (I used logical indexing to copy from a base matrix to resultant matrix. Got the answer by caculating the right indic...

Swapping any pair of elements

Try this: (I used logical indexing to copy from a base matrix to resultant matrix. Got the answer by caculating the right indic...

3 months ago | 0

Answered

Is Mask R-CNN available in Matlab?

Matlab doesn't have a pre-trained Mask RCNN network as of now. You may write your own training script for the custom network ...

Is Mask R-CNN available in Matlab?

Matlab doesn't have a pre-trained Mask RCNN network as of now. You may write your own training script for the custom network ...

3 months ago | 0

Answered

Precision/Recall (perfcurve)

perfcurve() is meant for computing performance curves for your model - such as PR curves or ROC curves. In the literature, you m...

Precision/Recall (perfcurve)

perfcurve() is meant for computing performance curves for your model - such as PR curves or ROC curves. In the literature, you m...

3 months ago | 0

| accepted

Answered

combinations with 2 columns

Hi Sampath, Look like you want to select exactly 1 element per row, from among all columns of the matrix. Hence, if there are ...

combinations with 2 columns

Hi Sampath, Look like you want to select exactly 1 element per row, from among all columns of the matrix. Hence, if there are ...

3 months ago | 0

Answered

integrate a matrix which is a function of two variables

Not sure what you meant by integrate... But I think you might be looking for something like cumsum, have a look at this: http...

integrate a matrix which is a function of two variables

Not sure what you meant by integrate... But I think you might be looking for something like cumsum, have a look at this: http...

4 months ago | 0

Answered

How to modify a sphereModel

Hi Alonso, There's usually a reason for attributes to be set as 'Read Only' for a specific class. If you actually changed those...

How to modify a sphereModel

Hi Alonso, There's usually a reason for attributes to be set as 'Read Only' for a specific class. If you actually changed those...

4 months ago | 0

Answered

Error: Index in position 1 exceeds array bounds (must not exceed 1).

Hey Natasha, The Problem Variable 'd' is the index variable used in the for loop. It does not behave as a vector at all, it...

Error: Index in position 1 exceeds array bounds (must not exceed 1).

Hey Natasha, The Problem Variable 'd' is the index variable used in the for loop. It does not behave as a vector at all, it...

4 months ago | 0

Answered

importing text files via importdata

Try this: You may use the Import Data Tool to do it graphically. [Click: 'Home' Tab > 'Variable' section > 'Import Data' icon]. ...

importing text files via importdata

Try this: You may use the Import Data Tool to do it graphically. [Click: 'Home' Tab > 'Variable' section > 'Import Data' icon]. ...

4 months ago | 0

Answered

Genetic Algorithm in Matlab tool box

Hi Suresh, Please check the documentation for ga() carefully: https://www.mathworks.com/help/gads/ga.html https://www.mathwo...

Genetic Algorithm in Matlab tool box

Hi Suresh, Please check the documentation for ga() carefully: https://www.mathworks.com/help/gads/ga.html https://www.mathwo...

4 months ago | 0

Answered

How to find the classification Accuracy

Hi Noufal, Here's how to log and MisclassificationRate and calculate Accuracy from there: Where is the Misclassification Rat...

How to find the classification Accuracy

Hi Noufal, Here's how to log and MisclassificationRate and calculate Accuracy from there: Where is the Misclassification Rat...

4 months ago | 0

Answered

Using fprintf to print in text file

Hey Sung, Instead of printing a fixed number of spaces with ' ', you may set the total width of your value in the format s...

Using fprintf to print in text file

Hey Sung, Instead of printing a fixed number of spaces with ' ', you may set the total width of your value in the format s...

4 months ago | 0

| accepted

Answered

Convert a 4D segmented matrix to a 3D one?

Hey Mohammad, Going by those input and output dimensions, I am assuming that you want to extract a part of the matrix with a gi...

Convert a 4D segmented matrix to a 3D one?

Hey Mohammad, Going by those input and output dimensions, I am assuming that you want to extract a part of the matrix with a gi...

4 months ago | 0

| accepted

Answered

Polygon Labelling from ground Truth Label for Traing RCNN

I don't think polygonal labels are specifically supported at this time. Have a look at pixelLabelDatastore: https://www.math...

Polygon Labelling from ground Truth Label for Traing RCNN

I don't think polygonal labels are specifically supported at this time. Have a look at pixelLabelDatastore: https://www.math...

4 months ago | 0

| accepted

Answered

Understanding the Behavior of interp2 and interp3

Hey Michael, Consider the syntax: Vq = interp2(XX, YY, V, Xq, Yq); The query point is interpreted in a graphical sense, there...

Understanding the Behavior of interp2 and interp3

Hey Michael, Consider the syntax: Vq = interp2(XX, YY, V, Xq, Yq); The query point is interpreted in a graphical sense, there...

4 months ago | 0

| accepted

Answered

uploading csv file as ground truth data for deep learning

It is uncertain what you meant by 'uploading' csv data. If you are looking to import data into matlab, you may use the Import T...

uploading csv file as ground truth data for deep learning

It is uncertain what you meant by 'uploading' csv data. If you are looking to import data into matlab, you may use the Import T...

4 months ago | 0

Answered

I need to understand the function of cropping intuitively

Hey Vinit, I see that you haven't provided the image file used by your code. Attach the relevant image file with the question ...

I need to understand the function of cropping intuitively

Hey Vinit, I see that you haven't provided the image file used by your code. Attach the relevant image file with the question ...

5 months ago | 0

Answered

How do you rearragne a matrix?

After the 2 lines of code above, use res = reshape(TEMP, [16 2]) See the documentation here: https://www.mathworks.com/help/m...

How do you rearragne a matrix?

After the 2 lines of code above, use res = reshape(TEMP, [16 2]) See the documentation here: https://www.mathworks.com/help/m...

5 months ago | 0

Answered

How to convert 1 column vector text file to rgb image?

Hi Tham, As mentioned here already, your shape of image should be 224x224x3, and you should be using a 3 dimensional array. W...

How to convert 1 column vector text file to rgb image?

Hi Tham, As mentioned here already, your shape of image should be 224x224x3, and you should be using a 3 dimensional array. W...

5 months ago | 0

Answered

Unexpected results with variable integer delay block

Hi Donghyuk, Your model seems to be working as expected - the output it gives is correct. Variable integer delay simply impl...

Unexpected results with variable integer delay block

Hi Donghyuk, Your model seems to be working as expected - the output it gives is correct. Variable integer delay simply impl...

6 months ago | 0

| accepted