I am an Application Support Engineer at Mathworks.

Disclaimer: Any articles/ideas/opinions here are my own and in no way reflect that of Mathworks

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

Answered

Error using fmincon, the function cannot continue

The error message says the objective function is not defined at initial point. This means objfun(xo) returns a 'NaN' or errors o...

Error using fmincon, the function cannot continue

The error message says the objective function is not defined at initial point. This means objfun(xo) returns a 'NaN' or errors o...

6 days ago | 1

Answered

Input shape for image sequence classification

In this example, since the task is to create a classification LSTM network that classifies sequences of 28-by-28 grayscale image...

Input shape for image sequence classification

In this example, since the task is to create a classification LSTM network that classifies sequences of 28-by-28 grayscale image...

7 days ago | 0

Answered

Find curvature of the image boundary

You can refer this post for how to meaure curvature of image boundaries.

Find curvature of the image boundary

You can refer this post for how to meaure curvature of image boundaries.

7 days ago | 0

Answered

How to classify direction of step using image processing

If you have access to the Computer Vision Toolbox, you may refer to 'estimateFlow' function to get the optical flow matrix. Usin...

How to classify direction of step using image processing

If you have access to the Computer Vision Toolbox, you may refer to 'estimateFlow' function to get the optical flow matrix. Usin...

7 days ago | 0

Answered

MacOS 11.3 (Big Sur) and Matlab 2020b compatibility

In most cases the issue seems to initiate from the simultaneous launching of MATLAB Editor at startup. It has been reported that...

MacOS 11.3 (Big Sur) and Matlab 2020b compatibility

In most cases the issue seems to initiate from the simultaneous launching of MATLAB Editor at startup. It has been reported that...

7 days ago | 0

Answered

Error: Too many input arguments

Make sure you are using the modified version of the 'projectAndReshapeLayer' class. The updated class file can be located in the...

Error: Too many input arguments

Make sure you are using the modified version of the 'projectAndReshapeLayer' class. The updated class file can be located in the...

8 days ago | 0

| accepted

Answered

How to find new coordinates of a point after image rotation?

I am not able to rectify the issue in your case since you have not provided the image. But you can see the results on a sample i...

How to find new coordinates of a point after image rotation?

I am not able to rectify the issue in your case since you have not provided the image. But you can see the results on a sample i...

8 days ago | 0

Answered

integral2 failing to calculate area of a square inside a circle?

Please correct the equation of the circular region in function 'Zfun1'. It should be of the form, x^2+y^2<=r^2.

integral2 failing to calculate area of a square inside a circle?

Please correct the equation of the circular region in function 'Zfun1'. It should be of the form, x^2+y^2<=r^2.

9 days ago | 0

| accepted

Answered

Fitting a specific linear function to data

You can launch the Curve Fitting Tool with 'cftool( x, y, z )' for your case. This will create a surface fit to x and y inputs a...

Fitting a specific linear function to data

You can launch the Curve Fitting Tool with 'cftool( x, y, z )' for your case. This will create a surface fit to x and y inputs a...

9 days ago | 0

Answered

Image sequence (images behind each other) MATLAB

I am not sure if there is any MATLAB tool/function that does this specifically. But as a workaround, a simple script can create ...

Image sequence (images behind each other) MATLAB

I am not sure if there is any MATLAB tool/function that does this specifically. But as a workaround, a simple script can create ...

10 days ago | 0

Answered

Interleaving vectors in simulink

I am not sure if there exist a block that specifically does this. However, this task can be done easily by creating a custom MAT...

Interleaving vectors in simulink

I am not sure if there exist a block that specifically does this. However, this task can be done easily by creating a custom MAT...

27 days ago | 0

Answered

vl_compilenn error in MatConvNet using GPU

It looks like 'vl_compilenn' is from a third-party repo called 'MatConvNet' which has its own forums. You can try looking for a ...

vl_compilenn error in MatConvNet using GPU

It looks like 'vl_compilenn' is from a third-party repo called 'MatConvNet' which has its own forums. You can try looking for a ...

28 days ago | 0

Answered

Why doesn't tcpclient find server for WiFi communication?

You can communicate with ESP8266 on MATLAB through ThingSpeak for an IOT project. You can find more details on these projects he...

Why doesn't tcpclient find server for WiFi communication?

You can communicate with ESP8266 on MATLAB through ThingSpeak for an IOT project. You can find more details on these projects he...

28 days ago | 0

Answered

Why the Reinforcement Learning seems do not learn anything?

If the agent is not taking good choices at later episodes, it is likely that the exploration epsilon factor is still high. You c...

Why the Reinforcement Learning seems do not learn anything?

If the agent is not taking good choices at later episodes, it is likely that the exploration epsilon factor is still high. You c...

28 days ago | 0

Answered

How to create loop

You can use for loop to automate this task. For example, "k" ranging from 2 to 10 in steps of 1 can be done in the following man...

How to create loop

You can use for loop to automate this task. For example, "k" ranging from 2 to 10 in steps of 1 can be done in the following man...

29 days ago | 0

| accepted

Answered

How to do FPGA inference of deblur GAN network using deep learning HDL tool box?

You have various options to import a trained model into MATLAB. If your model is a pretrained TensorFlow-Keras network, you can ...

How to do FPGA inference of deblur GAN network using deep learning HDL tool box?

You have various options to import a trained model into MATLAB. If your model is a pretrained TensorFlow-Keras network, you can ...

29 days ago | 0

Answered

Image Labeler taking ROI and discard the background

You cannot use the Image Labeler to segment/crop out the image using an ROI. You can, however, simply use the imcrop function to...

Image Labeler taking ROI and discard the background

You cannot use the Image Labeler to segment/crop out the image using an ROI. You can, however, simply use the imcrop function to...

1 month ago | 1

Answered

how to detect areas within a binary image with vision.BlobAnalysis ?

Can you check if you have the Computer Vision Toolbox installed with your MATLAB software. You can execute the following command...

how to detect areas within a binary image with vision.BlobAnalysis ?

Can you check if you have the Computer Vision Toolbox installed with your MATLAB software. You can execute the following command...

1 month ago | 0

Answered

Neural network working properly on Matlab but not in Simulink

Please see the documentation page for gensim. When giving a parameter for 'SampleTime', its value may be -1 or any integer great...

Neural network working properly on Matlab but not in Simulink

Please see the documentation page for gensim. When giving a parameter for 'SampleTime', its value may be -1 or any integer great...

1 month ago | 0

Answered

Read different matrix into a loop

You can concat all the monthData matrices into a single matrix called monthData. Then you can use the following for i=1:12 ...

Read different matrix into a loop

You can concat all the monthData matrices into a single matrix called monthData. Then you can use the following for i=1:12 ...

1 month ago | 0

Answered

Parrot rolling error generating code matlab 2020

The MATLAB Support Package for Parrot Drones currently supports the Parrot Mambo FPV and Parrot Bebop2 drones only. Alternative...

Parrot rolling error generating code matlab 2020

The MATLAB Support Package for Parrot Drones currently supports the Parrot Mambo FPV and Parrot Bebop2 drones only. Alternative...

1 month ago | 0

Answered

To select a text file from a directory into appdesigner

You can use the uigetfile component to open file selection dialog box, which can be used to select a text file in appdesigner.

To select a text file from a directory into appdesigner

You can use the uigetfile component to open file selection dialog box, which can be used to select a text file in appdesigner.

1 month ago | 0

Answered

Axis stacking above eachother when creating a video and using two seperate x- and y-axes

Try setting the axis limits and ticks outside, before the for loop. Currently, the ticks and limits are being added on every ite...

Axis stacking above eachother when creating a video and using two seperate x- and y-axes

Try setting the axis limits and ticks outside, before the for loop. Currently, the ticks and limits are being added on every ite...

2 months ago | 0

Answered

How to plot 2D graph using 'to workspace block' and need to be popped up after simulation completed

You can write a matlab script that runs your simulation model and then plots the data that is added to the workspace. Something ...

How to plot 2D graph using 'to workspace block' and need to be popped up after simulation completed

You can write a matlab script that runs your simulation model and then plots the data that is added to the workspace. Something ...

2 months ago | 0

Answered

Identify Simulink blocks by shape and ports?

You can use this Mathworks documentation link to search among all the Simulink blocks. You can even select a particular toolbox ...

Identify Simulink blocks by shape and ports?

You can use this Mathworks documentation link to search among all the Simulink blocks. You can even select a particular toolbox ...

2 months ago | 0

| accepted

Answered

Summation with For Loop 2

If you want to compute the sum of the f-terms as symbolic functions, you can use the symsum function to get the sum of your seri...

Summation with For Loop 2

If you want to compute the sum of the f-terms as symbolic functions, you can use the symsum function to get the sum of your seri...

2 months ago | 0

| accepted

Answered

How could i train my network on GPU?

For training the network on a single particular GPU, you can select that GPU before you start the training and set the 'Executio...

How could i train my network on GPU?

For training the network on a single particular GPU, you can select that GPU before you start the training and set the 'Executio...

2 months ago | 0

| accepted

Answered

Trouble Looping and recording distance between nearest centriods

The Index exceeding error might be because you are looping "k" variable from 1 to 20, but the "j" variable is looping from 2 to ...

Trouble Looping and recording distance between nearest centriods

The Index exceeding error might be because you are looping "k" variable from 1 to 20, but the "j" variable is looping from 2 to ...

2 months ago | 1

| accepted

Answered

How to detect smarhtphone's screen in an image

You can use the regionprops function to get a bounding box for the region of interest in your image. The 'BoundingBox' property ...

How to detect smarhtphone's screen in an image

You can use the regionprops function to get a bounding box for the region of interest in your image. The 'BoundingBox' property ...

2 months ago | 1

| accepted

Answered

Numeric Integral: 1/T * integral x(t)^2 dt [tau, T-tau]

I suggest you refer the documentation on the MATLAB function for numerical integration. Go through the examples to get an idea o...

Numeric Integral: 1/T * integral x(t)^2 dt [tau, T-tau]

I suggest you refer the documentation on the MATLAB function for numerical integration. Go through the examples to get an idea o...

2 months ago | 0