Answered
Measure distance between two object with same color automatically
First you need to segment the image to find all the "red" regions. I have some demos for color segmentation in my File Exchange...

9 days ago | 0

Answered
How to segregate folders level wise and list the files folderwise
There is a .isdir property on the returned files that you can check. In addition there is a function called isfolder() that you...

10 days ago | 1

| accepted

Answered
Generate Random Number inside a closed area
I don't think there is a built in function to do that. I think your strategy of using inpolygon() until you get a point inside ...

10 days ago | 0

Answered
index exceeds matrix dimensions
Either rvalue does not have 3 or more rows, or rvalue does not have OPTIONS.numVar columns. What does this show in the command ...

10 days ago | 0

Answered
Orientation of glass fibers code
No, no noe here has any code for that already. Try imgradient() then threshold to get binary blobs. Then use regionprops() on ...

10 days ago | 0

Answered
find same numbers in a row
You can do this if you have the Image Processing Toolbox: props = regionprops(yourSignal, 'PixelIdxList', 'Area'); allLengths ...

11 days ago | 0

Answered
what is the meaning of the following code ?
p is just 255 * h. And s just thresholds p back to 0 or 1, which is just the original h. So all that code is unnecessary. Rep...

13 days ago | 1

Answered
how to find euclidean distance between one vector and many other vectors
Try pdist2() if you have the Statistics and Machine Learning Toolbox D = [ 1 2 4] I1 = [3 5 5 ] I2 = [5 7 8 ] I3 = [9 8 7 ...

14 days ago | 2

| accepted

Answered
how to identify one impact-rebound trajectory from an image?
Since there is so much clutter in the image my suggestion is to ask the user to manually identify the streaks that you want usin...

15 days ago | 0

| accepted

Answered
Problem with reset pushbuttonin GUI
MATLAB is case sensitive. Try 'String' with a capital S. Or else you don't have a field called edit1 or don't have a handles s...

15 days ago | 0

Answered
How can I extract fields from a structure and create variables in the MATLAB workspace for example i need to extract every row in the field of position as shown below
Try this: for k = 1 : length(particle) % Extract the Position field for this row into a new variable. thisRow = parti...

15 days ago | 0

Answered
Disable option on a popupmenu
Stefany: If you're going to be changing the words in popup2, then you cannot check the value (selected index) of it in your swi...

15 days ago | 0

Answered
Using KNN to Classify a Single Image Example in MATLAB
See attached demo for using KNN classification to classify an RGB image into the number of classes you specify. Adapt as needed...

15 days ago | 0

Answered
Eliminate values from a column vector if two conditions are true
Try this: elementsToDelete = F1 == 0 & S1 == 0; F1(elementsToDelete) = []; S1(elementsToDelete) = [];

15 days ago | 0

Answered
Using KNN to Classify a Single Image Example in MATLAB
Attached is a demo for a discriminant classifier. It should be easy for you to adapt it to KNN.

15 days ago | 0

| accepted

Answered
Threshold for evaluation code R-CNN
To filter a table you can do something like this goodRows = [results.Scores] > 0.58; resutls = results(goodRows, :);

17 days ago | 0

| accepted

Answered
Finding several local maximum values in a given range and corresponding indices
It looks like you already have an acceptable answer, but if you want code to fit some specified number of Gaussians to a signal,...

18 days ago | 0

Answered
how to set the encoding of MATLAB m-files to be UTF8
Maybe open the file for reading, then open a file for writing using fopen(filename, , wt, 'UTF-8') (not sure if there is a param...

19 days ago | 0

Answered
why are my cross correlation values so high?
Cross correlation doesn't always have it's peak where the "lag" between two signals is, as a little thought will reveal. It sho...

19 days ago | 0

Answered
Some help with segmentation?
All that code you did does not do anything for getting a threshold - it's all unnecessary. You don't need to blur, rescale inte...

20 days ago | 0

Answered
applying mask on an image
To create a mask like you said: maxGL = max(grayImage(:)) mask = grayImage > maxGL/2; To apply the mask to an RGB image, use ...

20 days ago | 0

Answered
How to dewrap fisheye image to normal image by MATLAB.?
Did you try the Mathwork method: Fisheye calibration basics

20 days ago | 0

Answered
I cannot seem to get a second line for the forward finite difference
Looks like d2 is a scalar, not a vector (a list of values for each x value).

21 days ago | 0

Answered
Bound an object within an image and fill that object with white
How about using the Color Thresholder App to get the thresholds in HSV color space? See attached m-file for a full demo. I did...

21 days ago | 2

| accepted

Answered
How to generate Publication quality( for conferences/Journals) figures in MATLAB?
Perhaps try Waterloo: https://www.mathworks.com/matlabcentral/answers/271827-saving-a-high-quality-image-export_fig-not-workin...

22 days ago | 1

Answered
How to get image of figure with exact same size after saving on computer
Using saveas() or export_fig() will give you an image the same size in pixels as the displayed figure. If you have an axes on t...

23 days ago | 0

Answered
How to obtain a list of random integers satisfying the Law of Cosine?
So I guess the triple nested for loop won't work because they need to be obtained from a random draw and not sequentially? Have...

24 days ago | 1

| accepted

Answered
N​etwork Named User license 和 Concurrent license 的区别
"I am considering buying software (license). I read the introduction of the official website, but still did not understand. I h...

25 days ago | 0

| accepted

Answered
How to get a color image with labeling from a binary image?
Here is a snippet from my Image Segmentation Tutorial: % Identify individual blobs by seeing which pixels are connected to each...

26 days ago | 0

Load more