Answered

Reference to non-existent field 'axe2'. to display stego image

What is the tag property of hte control? Is it axe2 (unlikely) or axes2 (more likely)? Try axes(handles.axes2);

Reference to non-existent field 'axe2'. to display stego image

What is the tag property of hte control? Is it axe2 (unlikely) or axes2 (more likely)? Try axes(handles.axes2);

2 days ago | 0

| accepted

Answered

How to remove elements from the vector while we save the index of those removed elements?

Is this what you want? b = [2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1]; y = b; % Find out which elements have a value of more t...

How to remove elements from the vector while we save the index of those removed elements?

Is this what you want? b = [2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1]; y = b; % Find out which elements have a value of more t...

2 days ago | 0

Answered

Making a histogram with two variables in the same graph

You can try this: % Create sample data. z1 = 7000 * randn(1, 1000) + 12000; z2 = 7000 * randn(1, 1000) + 12000; % Create his...

Making a histogram with two variables in the same graph

You can try this: % Create sample data. z1 = 7000 * randn(1, 1000) + 12000; z2 = 7000 * randn(1, 1000) + 12000; % Create his...

2 days ago | 0

Answered

How to calculate alignments of fingerprint minutiae in MATLAB

If X is a vector of all your x values and Y is a vector of all your y values, do this: distances = pdist2([X(:), Y(:)], [X(:), ...

How to calculate alignments of fingerprint minutiae in MATLAB

If X is a vector of all your x values and Y is a vector of all your y values, do this: distances = pdist2([X(:), Y(:)], [X(:), ...

2 days ago | 0

Answered

Trying to avoid using eval for looping through structures with data in the variable names.

I think you should get a table, either directly from readtable() or by converting your struct to a table with struct2table(). T...

Trying to avoid using eval for looping through structures with data in the variable names.

I think you should get a table, either directly from readtable() or by converting your struct to a table with struct2table(). T...

2 days ago | 0

Answered

Random steps of molecules undergoing Brownian motion

Basically you can construct arrays for x and y where the row represents that particle, and the column is the step number (time p...

Random steps of molecules undergoing Brownian motion

Basically you can construct arrays for x and y where the row represents that particle, and the column is the step number (time p...

2 days ago | 0

| accepted

Answered

Correlation between 1 number and set of numbers

One way to do it is to use nlfilter(). I'm attaching a demo. Inside your custom function you'd take the local neighborhood and...

Correlation between 1 number and set of numbers

One way to do it is to use nlfilter(). I'm attaching a demo. Inside your custom function you'd take the local neighborhood and...

2 days ago | 0

Answered

Contrast vs brightness vs gamma

Those charts are a mapping of output gray level versus input gray level. A linear 45 degree line means that the output is the s...

Contrast vs brightness vs gamma

Those charts are a mapping of output gray level versus input gray level. A linear 45 degree line means that the output is the s...

2 days ago | 1

| accepted

Answered

How can I calculated centroid contour distance in image at every 10 degree?

No, that won't work (as you know). Try it this way, in my well-commented/explained example below: clc; % Clear the command ...

How can I calculated centroid contour distance in image at every 10 degree?

No, that won't work (as you know). Try it this way, in my well-commented/explained example below: clc; % Clear the command ...

2 days ago | 0

| accepted

Answered

GUIDE - using the data of a Textbox to use it in other functions in the main

Just call this code to get minVelocity whenever you need it minVelocity = str2double(handles.minVelocity.String); The function...

GUIDE - using the data of a Textbox to use it in other functions in the main

Just call this code to get minVelocity whenever you need it minVelocity = str2double(handles.minVelocity.String); The function...

2 days ago | 0

Answered

How to change 1 channel image to 3 channel

Try cat() to stack the gray scale image into 3 slices (color channels): rgbImage = cat(3, grayImage, grayImage, grayImage); It...

How to change 1 channel image to 3 channel

Try cat() to stack the gray scale image into 3 slices (color channels): rgbImage = cat(3, grayImage, grayImage, grayImage); It...

3 days ago | 0

Answered

Label segments based on percentage

Your data didn't seem to have any segments where the value was 1, at least in the several cells I looked in, but I think this sh...

Label segments based on percentage

Your data didn't seem to have any segments where the value was 1, at least in the several cells I looked in, but I think this sh...

3 days ago | 0

Answered

Invalid syntax at'='. Possibly, a ')' is missing.error in this sentence .a red line under the "=" sign.

Assignments are made with a single equals sign, not a double equals sign. I fixed a ton of those and then it bombed when you ge...

Invalid syntax at'='. Possibly, a ')' is missing.error in this sentence .a red line under the "=" sign.

Assignments are made with a single equals sign, not a double equals sign. I fixed a ton of those and then it bombed when you ge...

4 days ago | 0

Answered

Invalid syntax at'='. Possibly, a ')' is missing.error in this sentence .a red line under the "=" sign.

FOR and END need to be lower case. You forgot to attach C:\Users\macbook\Desktop\Powerquality\Assignment1.xls so we can't run y...

Invalid syntax at'='. Possibly, a ')' is missing.error in this sentence .a red line under the "=" sign.

FOR and END need to be lower case. You forgot to attach C:\Users\macbook\Desktop\Powerquality\Assignment1.xls so we can't run y...

4 days ago | 0

Answered

How to create an identity matrix with three identical rows each time

Use repelem()

How to create an identity matrix with three identical rows each time

Use repelem()

4 days ago | 0

Answered

matrix of matrices - matrix with matrices inside it

Some more ways A = [1 2 3 4; 5 6 7 8] % Create a 2-D array with the vectors in it. A = cat(2, [1 2 3 4], [5 6 7 8]); % Create ...

matrix of matrices - matrix with matrices inside it

Some more ways A = [1 2 3 4; 5 6 7 8] % Create a 2-D array with the vectors in it. A = cat(2, [1 2 3 4], [5 6 7 8]); % Create ...

4 days ago | 0

Answered

Subplot images from database folder using index value.

Regarding your edited question (where you took out mention of the "r" variable over which you wished to sort), you might want to...

Subplot images from database folder using index value.

Regarding your edited question (where you took out mention of the "r" variable over which you wished to sort), you might want to...

4 days ago | 0

Answered

Subplot images from database folder using index value.

I don't understand the question, but to sort by decreasing values of r, read in the image for each r, and display the image, for...

Subplot images from database folder using index value.

I don't understand the question, but to sort by decreasing values of r, read in the image for each r, and display the image, for...

5 days ago | 0

Answered

Using the Mod Function to Turn a Vector (i.e. 1:15) into [1, 2, 3, 1, 2, 3, 1, 2, 3] etc.

Yeah, you could do it like that, though a much more straightforward way is to simply use repmat n = 5; % Whatever you want out...

Using the Mod Function to Turn a Vector (i.e. 1:15) into [1, 2, 3, 1, 2, 3, 1, 2, 3] etc.

Yeah, you could do it like that, though a much more straightforward way is to simply use repmat n = 5; % Whatever you want out...

5 days ago | 0

Answered

How to fit an ellipse to an image in matlab.

See Steve's blog: Visualizing regionprops ellipse measurements

How to fit an ellipse to an image in matlab.

See Steve's blog: Visualizing regionprops ellipse measurements

5 days ago | 0

Answered

Running Average of a Massive data set

Well 20,000 points is far from massive. Maybe if it were 10,000 times that big. 20k is actually pretty small. Anyway you can ...

Running Average of a Massive data set

Well 20,000 points is far from massive. Maybe if it were 10,000 times that big. 20k is actually pretty small. Anyway you can ...

5 days ago | 0

| accepted

Answered

Left and right sides have a different number of elements

You need to preallocate the 3-by-3-by-n array Qb. This works: n = 2 ang = 0 % (however I'd like it to iterate throuhg 0 and 9...

Left and right sides have a different number of elements

You need to preallocate the 3-by-3-by-n array Qb. This works: n = 2 ang = 0 % (however I'd like it to iterate throuhg 0 and 9...

5 days ago | 0

Answered

Calculating area under a curve

Depends on what the signal values truly represent. I'd suggest either summing the signal with sum() or using trapz(). You can ...

Calculating area under a curve

Depends on what the signal values truly represent. I'd suggest either summing the signal with sum() or using trapz(). You can ...

5 days ago | 0

Answered

How to show/ indicate the absolute Maximum and Minimum on a plot in matlab?

Since you know x and y, how about hold on; plot(x, y, 'ro', 'LineWidth', 2, 'MarkerSize', 20); % Plot a circle around the max ...

How to show/ indicate the absolute Maximum and Minimum on a plot in matlab?

Since you know x and y, how about hold on; plot(x, y, 'ro', 'LineWidth', 2, 'MarkerSize', 20); % Plot a circle around the max ...

6 days ago | 0

Answered

Object-Detection on the Edge of my Image

Not sure why this 10 month old post popped up on the current list, but whatever. The function you're looking for is imclearbord...

Object-Detection on the Edge of my Image

Not sure why this 10 month old post popped up on the current list, but whatever. The function you're looking for is imclearbord...

6 days ago | 0

| accepted

Answered

alternate row sorting on changing row value

Sounds a lot like homework. So look at functions like sort(), flipup(), findgroups(), mod(), rem(), etc. and look at indexing, ...

alternate row sorting on changing row value

Sounds a lot like homework. So look at functions like sort(), flipup(), findgroups(), mod(), rem(), etc. and look at indexing, ...

6 days ago | 0

Answered

Remove parts from Image and Fill Parts

Pretty easy. Threshold, fill holes, take the 3 largest. Solution below. Adapt as needed. % Initialization steps. clc; % ...

Remove parts from Image and Fill Parts

Pretty easy. Threshold, fill holes, take the 3 largest. Solution below. Adapt as needed. % Initialization steps. clc; % ...

6 days ago | 0

| accepted

Answered

how to calculate the distance between different pixels

Try imdistline() or improfile() to get the distance either in pixels or real world units (if you've used XDAta when you called i...

how to calculate the distance between different pixels

Try imdistline() or improfile() to get the distance either in pixels or real world units (if you've used XDAta when you called i...

7 days ago | 0

Answered

Segment Dumbbell Structure into Two Circles and One Rectangle

Try imfindcircles() to find the centers and radii of the circles. Then create a circular mask to mask them out -- see The FAQ...

Segment Dumbbell Structure into Two Circles and One Rectangle

Try imfindcircles() to find the centers and radii of the circles. Then create a circular mask to mask them out -- see The FAQ...

7 days ago | 0

| accepted