I work at MathWorks India Pvt. Ltd.

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks

Answered

Difficulty foor running a class

As Walter Roberson pointed out, please make sure that you store the classdef in a separate file with the same name as the class ...

Difficulty foor running a class

As Walter Roberson pointed out, please make sure that you store the classdef in a separate file with the same name as the class ...

2 years ago | 0

Answered

how to get the gradient of fucntion from vectors to scalars by matlab?

I assume you are referring to the gradient of L2 norm squared. You can directly apply the closed form expression of the gradient...

how to get the gradient of fucntion from vectors to scalars by matlab?

I assume you are referring to the gradient of L2 norm squared. You can directly apply the closed form expression of the gradient...

2 years ago | 0

Answered

How to resample continuous random variables based on a 2D probability density function

I believe the <http://www.mathworks.com/help/stats/randsample.html randsample> function will be helpful to you. You can use the ...

How to resample continuous random variables based on a 2D probability density function

I believe the <http://www.mathworks.com/help/stats/randsample.html randsample> function will be helpful to you. You can use the ...

2 years ago | 0

Answered

Tire model with dynamic rolling radius

What do you mean by dynamic rolling radius? Do you want to change it during simulation runtime? As per the documentation, the d...

Tire model with dynamic rolling radius

What do you mean by dynamic rolling radius? Do you want to change it during simulation runtime? As per the documentation, the d...

2 years ago | 0

Answered

How to resize a 3D image into a 4D image to use in montage?

There are different ways to pass a set of images as input to <https://www.mathworks.com/help/images/ref/montage.html montage> fu...

How to resize a 3D image into a 4D image to use in montage?

There are different ways to pass a set of images as input to <https://www.mathworks.com/help/images/ref/montage.html montage> fu...

2 years ago | 0

Answered

How to plot multiple values of a variable in one graph?

I believe you want to plot the maximum value for each graph against the index file. You can simply store maximum values in |l| a...

How to plot multiple values of a variable in one graph?

I believe you want to plot the maximum value for each graph against the index file. You can simply store maximum values in |l| a...

2 years ago | 0

Answered

How can I register a series of images stored in an array with imregister?

You need not loop through individual pixels for image registration. Since image registration is a global transform, you can dire...

How can I register a series of images stored in an array with imregister?

You need not loop through individual pixels for image registration. Since image registration is a global transform, you can dire...

2 years ago | 0

Answered

How do I find pixel intensity in ROI and color based on intensity?

If you want the community to understand your code and help you, you may need to provide bit more details about your code and you...

How do I find pixel intensity in ROI and color based on intensity?

If you want the community to understand your code and help you, you may need to provide bit more details about your code and you...

2 years ago | 0

Answered

How to create exe file and use with MATLAB installed?

You need to launch MATLAB for running .m files. You can use <https://www.mathworks.com/help/compiler/index.html MATLAB compiler>...

How to create exe file and use with MATLAB installed?

You need to launch MATLAB for running .m files. You can use <https://www.mathworks.com/help/compiler/index.html MATLAB compiler>...

2 years ago | 1

Answered

How to detect the the are of the object?

One of the ways to achieve this is by using connected component analysis or hough circles, but I believe you may need to use a b...

How to detect the the are of the object?

One of the ways to achieve this is by using connected component analysis or hough circles, but I believe you may need to use a b...

2 years ago | 1

Answered

How to check the lighting condition of an Image programatically?

First, we need to decide an algorithm for detecting the underexposed images. A simple algorithm will be something like calculati...

How to check the lighting condition of an Image programatically?

First, we need to decide an algorithm for detecting the underexposed images. A simple algorithm will be something like calculati...

2 years ago | 0

Answered

I have no idea of this code,,,, please help me.

As far as I know, |cfc| is not a built-in MATLAB function. It may be a custom function and you can open function by entering |ed...

I have no idea of this code,,,, please help me.

As far as I know, |cfc| is not a built-in MATLAB function. It may be a custom function and you can open function by entering |ed...

2 years ago | 0

Answered

how to draw boundary of an image

The |bwboundaries| returns the possible boundaries in the input image as a cell array. Any specific boundary can be extracted by...

how to draw boundary of an image

The |bwboundaries| returns the possible boundaries in the input image as a cell array. Any specific boundary can be extracted by...

2 years ago | 0

Answered

Does image augmentation increase the number of training data?

|augmentedImageDatastore| increases the training data by performing resizing, rotation, and reflection etc. Technically it is tr...

Does image augmentation increase the number of training data?

|augmentedImageDatastore| increases the training data by performing resizing, rotation, and reflection etc. Technically it is tr...

2 years ago | 0

| accepted

Answered

Solve a system of equations iteratively

If the error says 'Subscripted assignment dimension mismatch', that means you attempt to assign elements to an existing array, b...

Solve a system of equations iteratively

If the error says 'Subscripted assignment dimension mismatch', that means you attempt to assign elements to an existing array, b...

2 years ago | 0

Answered

I've found code online to find the clustering coefficients from the adjacency matrix, and i'm trying to understand how it works. So deg and cn are column vectors, but i don't understand what cn(deg>1) or deg(deg>1) actually means. thanks

This is basically logical indexing. |deg>1| returns a logical matrix of size |deg| with value 1 at coordinates where |deg>1| con...

I've found code online to find the clustering coefficients from the adjacency matrix, and i'm trying to understand how it works. So deg and cn are column vectors, but i don't understand what cn(deg>1) or deg(deg>1) actually means. thanks

This is basically logical indexing. |deg>1| returns a logical matrix of size |deg| with value 1 at coordinates where |deg>1| con...

2 years ago | 0

Answered

How do i isolate the vertical lines in an image?

You can use the |imgradientxy| function to find gradients along x and y axis. Since the vertical lines will have gradients along...

How do i isolate the vertical lines in an image?

You can use the |imgradientxy| function to find gradients along x and y axis. Since the vertical lines will have gradients along...

2 years ago | 0

Answered

how to detect rough boundary of a object in a image

I think the morphological operations like erode and dilate will be useful in separating the central bell-shaped region from the ...

how to detect rough boundary of a object in a image

I think the morphological operations like erode and dilate will be useful in separating the central bell-shaped region from the ...

2 years ago | 0

Answered

How to detect low contrast objects with varying intensity ?

Detecting circles or shapes rely on the quality of the image gradient we can get. When the circle pixels are close to the backgr...

How to detect low contrast objects with varying intensity ?

Detecting circles or shapes rely on the quality of the image gradient we can get. When the circle pixels are close to the backgr...

2 years ago | 0

Answered

How would I go about running trough an RGB image and turning all pixels with R >200 to white?

You can use logical indexing. First, find a logical map to find the pixels locations (R>200) and use this logical map for logica...

How would I go about running trough an RGB image and turning all pixels with R >200 to white?

You can use logical indexing. First, find a logical map to find the pixels locations (R>200) and use this logical map for logica...

2 years ago | 1

Answered

Load Images In MatLab HANGMAN game??

You can use the |imread| function to read the image and assign it to the |myflower| variable directly. myflower=imread('og-...

Load Images In MatLab HANGMAN game??

You can use the |imread| function to read the image and assign it to the |myflower| variable directly. myflower=imread('og-...

2 years ago | 0

Answered

How can I extract the inner cell body(s) from the cell capsule in images (grayscale) such as these ??

To get good results you have to finetune the parameters in the algorithm. For example, giving a lower threshold for |imbinarize|...

How can I extract the inner cell body(s) from the cell capsule in images (grayscale) such as these ??

To get good results you have to finetune the parameters in the algorithm. For example, giving a lower threshold for |imbinarize|...

2 years ago | 0

Answered

Where can I find the data used for Deeplearning training course, specially the flowers data

It looks like you are mentioning about the Flowers dataset used in the Deep Learning Onramp course. I think it is Flowers17 dat...

Where can I find the data used for Deeplearning training course, specially the flowers data

It looks like you are mentioning about the Flowers dataset used in the Deep Learning Onramp course. I think it is Flowers17 dat...

2 years ago | 0

| accepted

Answered

How to know x value if I have y value from graph

I assume you will have the model which you used to fit the data and the coefficients. You can invert the model and find X from Y...

How to know x value if I have y value from graph

I assume you will have the model which you used to fit the data and the coefficients. You can invert the model and find X from Y...

2 years ago | 0

Answered

How to find landmarks of a rotated image?

You can create a rotation matrix T and multiply the location vector of landmark points with T to find the locations of landmark ...

How to find landmarks of a rotated image?

You can create a rotation matrix T and multiply the location vector of landmark points with T to find the locations of landmark ...

2 years ago | 0

| accepted

Answered

Extraction of tumour, Dilation and Drawing a boundary around tumour

You have to normalize the image before passing it into the |im2bw| function. Please refer to the following answer <https://ww...

Extraction of tumour, Dilation and Drawing a boundary around tumour

You have to normalize the image before passing it into the |im2bw| function. Please refer to the following answer <https://ww...

2 years ago | 0

Answered

Use image function to create heat map and 3D plot?

You can use the |cdata| property in the surface properties to assign vertex colors on a surface. figure,surf(X,Y,Z,'cdata',...

Use image function to create heat map and 3D plot?

You can use the |cdata| property in the surface properties to assign vertex colors on a surface. figure,surf(X,Y,Z,'cdata',...

2 years ago | 0

Answered

Extraction of tumour, Dilation and Drawing a boundary around tumour

When you are binarizing the image using the |im2bw| function, it uses a level value to determine the threshold. The default valu...

Extraction of tumour, Dilation and Drawing a boundary around tumour

When you are binarizing the image using the |im2bw| function, it uses a level value to determine the threshold. The default valu...

2 years ago | 0

Answered

Delete circles and keep defects picture

Sound like his <https://www.mathworks.com/help/images/examples/detect-and-measure-circular-objects-in-an-image.html example> wil...

Delete circles and keep defects picture

Sound like his <https://www.mathworks.com/help/images/examples/detect-and-measure-circular-objects-in-an-image.html example> wil...

2 years ago | 0

Answered

what is the principle of griddata

You can open the code of |griddata| by entering |open griddata| in the command window. The different functions used and the refe...

what is the principle of griddata

You can open the code of |griddata| by entering |open griddata| in the command window. The different functions used and the refe...

2 years ago | 0

| accepted