I am an Application Software Engineer at Mathworks India.

My main areas of interest are Computer Vision and Machine Learning.

DISCLAIMER: Any advice or opinions here are my own and in no way reflect that of Mathworks.

Answered

External C++ library support for Simulink Realtime

The error is because the C++ standard template library is not compatible with real-time code. A similar question has been answe...

External C++ library support for Simulink Realtime

The error is because the C++ standard template library is not compatible with real-time code. A similar question has been answe...

1 month ago | 0

Answered

How can I launch a FreeFem++ (.edp) file from MATLAB 2018b?

In the ButtonPushed callback function, you can add the following line for executing a .edp file system(['FreeFem++ ' path_to_fi...

How can I launch a FreeFem++ (.edp) file from MATLAB 2018b?

In the ButtonPushed callback function, you can add the following line for executing a .edp file system(['FreeFem++ ' path_to_fi...

1 month ago | 0

| accepted

Answered

4D Plot using Columns of Matrix

figure, scatter3(X, Y, Z, 50, F, 'filled'); The scatter3 function can be used, where each point in F is plotted with a differen...

4D Plot using Columns of Matrix

figure, scatter3(X, Y, Z, 50, F, 'filled'); The scatter3 function can be used, where each point in F is plotted with a differen...

1 month ago | 0

Answered

'Error in default port dimensions function of S-function', 'This function does not fully set the dimensions of output port 2'

In line 50 of your ManoeuvringCode.m, the variable X_u is defined as an expression which is present in your excel sheet in row 4...

'Error in default port dimensions function of S-function', 'This function does not fully set the dimensions of output port 2'

In line 50 of your ManoeuvringCode.m, the variable X_u is defined as an expression which is present in your excel sheet in row 4...

1 month ago | 0

Answered

What is an optimum value for Java Heap Memory?

There is no optimal value for Java heap space, as the best allocation depends on what you are doing. The default heap size is su...

What is an optimum value for Java Heap Memory?

There is no optimal value for Java heap space, as the best allocation depends on what you are doing. The default heap size is su...

1 month ago | 0

| accepted

Answered

Creating a Simbolic vector and setting assumptions on it

You can declare assumptions on symbolic variables using the assume function from the Symbolic Math Toolbox. For more information...

Creating a Simbolic vector and setting assumptions on it

You can declare assumptions on symbolic variables using the assume function from the Symbolic Math Toolbox. For more information...

1 month ago | 0

Answered

How to add images continuously to a imageDatastore

Since the ‘Files’ and ‘Labels ‘ properties of the imageDatastore function return cell array of character vectors, you can direct...

How to add images continuously to a imageDatastore

Since the ‘Files’ and ‘Labels ‘ properties of the imageDatastore function return cell array of character vectors, you can direct...

1 month ago | 0

Answered

How to process video in parallel?

One possible approach is by using spmd. You could define spmd in such a way that each worker will operate on a chunk of the inpu...

How to process video in parallel?

One possible approach is by using spmd. You could define spmd in such a way that each worker will operate on a chunk of the inpu...

1 month ago | 1

| accepted

Answered

Perform 3-D U-Net Deep Learning with non-cubic input

The input size might not be the problem, as you were able to train the network without any errors. In case of medical imaging,...

Perform 3-D U-Net Deep Learning with non-cubic input

The input size might not be the problem, as you were able to train the network without any errors. In case of medical imaging,...

1 month ago | 0

Answered

Slow checkLayer-function for simple custom reshape layer

While using the checkLayer function, for large input sizes, the gradient checks take longer time to run. To speed up the tests, ...

Slow checkLayer-function for simple custom reshape layer

While using the checkLayer function, for large input sizes, the gradient checks take longer time to run. To speed up the tests, ...

1 month ago | 0

Answered

Data Partition using CVPartition_ Warning

c = cvpartition(n,'KFold',k) The above syntax of the function randomly splits the “n” observations into “k” disjoint sets of ro...

Data Partition using CVPartition_ Warning

c = cvpartition(n,'KFold',k) The above syntax of the function randomly splits the “n” observations into “k” disjoint sets of ro...

1 month ago | 0

| accepted

Answered

Finding Frame Count for DICOM File

You can use the function dicomCollection to get the number of frames. For more information on how to use this function, refer t...

Finding Frame Count for DICOM File

You can use the function dicomCollection to get the number of frames. For more information on how to use this function, refer t...

1 month ago | 1

| accepted

Answered

Time Series and input layer Error

From the error you received, I can see that your input data is of size 5353. But, from line 3 of your code, you are defining t...

Time Series and input layer Error

From the error you received, I can see that your input data is of size 5353. But, from line 3 of your code, you are defining t...

1 month ago | 0

| accepted

Answered

Error in the Matlab documentation for surrogateopt

Hi, I have brought this issue to the notice of our developers. They will investigate the matter further.

Error in the Matlab documentation for surrogateopt

Hi, I have brought this issue to the notice of our developers. They will investigate the matter further.

2 months ago | 0

Answered

How to crop an image inside a boundary ?

region=uint8(roipoly(img,position(:,1),position(:,2))); After getting the mask of the selected region from the above line in yo...

How to crop an image inside a boundary ?

region=uint8(roipoly(img,position(:,1),position(:,2))); After getting the mask of the selected region from the above line in yo...

2 months ago | 0

| accepted

Answered

Deep Learning Memory issues for BiLstm mat files

Hi, You could use the Custom Mini-batch Datastore which uses the function sequenceDatastore that reads data from the specified...

Deep Learning Memory issues for BiLstm mat files

Hi, You could use the Custom Mini-batch Datastore which uses the function sequenceDatastore that reads data from the specified...

2 months ago | 0

Answered

How do i use sequentialfs in matlab when using neural networks (patternnet) as a model?

Hi, classf = @(xtrain,ytrain,xtest,ytest) sum(classify(ytest,xtest,train(ytrain,xtrain)) ~= ytest); In the above declaratio...

How do i use sequentialfs in matlab when using neural networks (patternnet) as a model?

Hi, classf = @(xtrain,ytrain,xtest,ytest) sum(classify(ytest,xtest,train(ytrain,xtrain)) ~= ytest); In the above declaratio...

2 months ago | 0

Answered

semantic segmentation of 4D MRI using 3D-UNet

Hi, Since you defined the Input Layer size as [64 64 64 4], it is expecting the input you provide to be of size [64 64 64]. Wh...

semantic segmentation of 4D MRI using 3D-UNet

Hi, Since you defined the Input Layer size as [64 64 64 4], it is expecting the input you provide to be of size [64 64 64]. Wh...

2 months ago | 0

| accepted

Answered

How do I use a trained network to make new predictions?

save KanushkaNet; The above command which you used will save all your current variables from the workspace. If you want to save...

How do I use a trained network to make new predictions?

save KanushkaNet; The above command which you used will save all your current variables from the workspace. If you want to save...

2 months ago | 0

Answered

trainYOLOv2ObjectDetector function details.

You can refer to the following link on how to use the trainYOLOv2ObjectDetector function: https://www.mathworks.com/help/vision...

trainYOLOv2ObjectDetector function details.

You can refer to the following link on how to use the trainYOLOv2ObjectDetector function: https://www.mathworks.com/help/vision...

2 months ago | 0

Answered

How can i use the validation set in object detection using deep learning?

The trainFasterRCNNObjectDetector does not support the “ValidationData”, “ValidationFrequency” and “ValidationPatience” options ...

How can i use the validation set in object detection using deep learning?

The trainFasterRCNNObjectDetector does not support the “ValidationData”, “ValidationFrequency” and “ValidationPatience” options ...

2 months ago | 0

Answered

neural network regression model error

As I understand, your input dataset, “x” has size 1000 x 1 and the output, “y” has size 1000 x 1 and you are defining a regressi...

neural network regression model error

As I understand, your input dataset, “x” has size 1000 x 1 and the output, “y” has size 1000 x 1 and you are defining a regressi...

2 months ago | 0

Answered

How to convert a binary image into lines only

Hi, You can use the command “bwskel” for this purpose. It takes two parameters as input, the binary image and minimum branch l...

How to convert a binary image into lines only

Hi, You can use the command “bwskel” for this purpose. It takes two parameters as input, the binary image and minimum branch l...

2 months ago | 0

Answered

How to read and store pixel intensity and coordinates values of a grayscale-converted image?

Hi, As I understand, you want to get the pixel intensity value of the grayscale image (B) at a particular location (xi, yi). ...

How to read and store pixel intensity and coordinates values of a grayscale-converted image?

Hi, As I understand, you want to get the pixel intensity value of the grayscale image (B) at a particular location (xi, yi). ...

2 months ago | 0