Community Profile

### MathWorks

67 total contributions since 2019

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.

View details...

Contributions in
View by

How to generate a transformation matrix from the displacement fields using imregdemons
Currently there is no way to directly get the transformation matrix from the displacement field. Instead, you can use imregtfo...

11 days ago | 0

Bird eye view image points to original image points
You can use the imageToVehicle function. The bird eye image and the required points that you want to transform should be given a...

11 days ago | 0

Problem with table/cell array in an LSTM anomaly detection project
You can use a table as an input to the trainNetwork function for training your LSTM model. If the data size is same for all co...

11 days ago | 0

| accepted

utilising imwarp and affine2d for transformation on dataset
You can concatenate all the images in a matrix of size m x n x c x t where m = width, n = height, c = number of channels, t = ...

12 days ago | 0

arranging Dicom slices in proper order

12 days ago | 0

Do the Dice and Jaccard functions work on my Nifty file?
jaccard supports inputs of size 2-D, 3-D or n-D arrays whereas dice supports 2-D or 3-D inputs. You can find this information ...

12 days ago | 0

finding best value for ARIMA (p,d,q) model?
The estimate function doesn't have "print" as a Name-Value pair argument. Instead, you can use something like this to turn off...

14 days ago | 0

| accepted

Error using trainNetwork. Number of observations in X and Y disagree.
Hi, The size of the output of your network should be equal the size of Y (labels). You can refer to the following link for a s...

15 days ago | 0

How to find the average of a single column in matrix
Hi, If m is your matrix, to get the last column and mean, you can use: last_col = m(:, end) avg = mean(last_col); Hope thi...

15 days ago | 0

Convolutional LSTM in Matlab 2019b
Hi, You can find a similar workflow in the link below. https://www.mathworks.com/help/deeplearning/examples/classify-videos...

15 days ago | 0

BatchMultiClassNonMaxSuppression - importONNXLayers/Network issue
For building a custom layer, please refer to the below link: https://www.mathworks.com/help/deeplearning/ug/define-custom-deep...

15 days ago | 0

| accepted

How to process extracted SURF features for SVM classifier
You can use fitcsvm to train SVM classifier. You can load the files into the workspace in a loop. for i = 1 : total_files ...

1 month ago | 0

How to load multiple .txt files into the workspace at once
Following is a small example: files = dir(fullfile(filedir, '*.txt')); n = length(files); data = cell(n); for i = 1 : n ...

2 months ago | 0

How i can calculate the EENS by using Matpower?
You can refer to the following link on how to implement Monte Carlo simulation in MATLAB https://www.mathworks.com/discovery/mo...

2 months ago | 0

| accepted

How do I export Simulink projects in a previous version in an automated way?
A possible current workaround is to manually export all the models in the desired release, or do it programmatically with the fu...

2 months ago | 1

How can I import large data through odbc (database explorer)
A similar question has been answered which might be of relevance to you. https://www.mathworks.com/matlabcentral/answers/457431...

2 months ago | 0

code gernation error using CUDA
Make sure the correct GPU supported compiler is installed on the machine. You will need Visual Studio to compile for GPU Coder. ...

2 months ago | 0

How to remove outliers from a Raman spectrum
You can achieve this using the different methods. 1) Using Basic fitting: Fit a curve using 'polyfit'. Identify outliers th...

2 months ago | 0

| accepted

neural network auto hyper parameters optimization

2 months ago | 0

Error using TrainNetwork. Output Size of the Last Layer does not match the Response Size
The size of the output of your network should match with the size of the label. The size of your labels is [0 0 1 1] and the ou...

2 months ago | 1

Is there a way to plot multiple neural network run results into one plot?
You can use the field OutputFcn of the trainingOptions function. You can refer to the following example and change it accordin...

2 months ago | 0

[Concatenating .wav files on the base of the values specified in a separate matrix.
You can concatenate wav files in the following way: y_concat = [y1; y2]; As for checking if ID and Trial are same for the fi...

2 months ago | 0

export structure values to csv or txt file
You can use dlmwrite with the “append” property. Here’s a rough sketch of the code for your reference for = ... st...

3 months ago | 1

Image registration for multimodal images µct and OCT
Please refer to the below link to understand how to perform image registration for multi-modality images https://www.mathworks....

3 months ago | 0

Train shallow network - Out of memory on device. To view more detail about available memory on the GPU, use 'gpuDevice()'. If the problem persists, reset the GPU by calling 'gpuDevice(1)'.
This could happen if your dataset is huge. In which cases it is preferable to train the network in mini-batches. Classical neur...

3 months ago | 0

| accepted

How can I transfer the model parameters of a well-trained NN to another one?
Before you assign weights of “net_2” to “net_1”, initialize net_1 to net_2 using the init function net_1 = init(net_2); This w...

3 months ago | 0

| accepted

3 months ago | 0

| accepted

Is there a fix to the error "A regression layer must not be preceded by a softmax layer." ?
The softmax layer normalizes the input to the layer such that its elements sum up to 1. Therefore, it is useful when you want th...

3 months ago | 1

| accepted