回答済み

connecting 2 object that separately but their location is close ?

To connect regions, you can use imclose() mask = imclose(mask, true(9)); % Vary the 9 to connect more or less close regions. T...

connecting 2 object that separately but their location is close ?

To connect regions, you can use imclose() mask = imclose(mask, true(9)); % Vary the 9 to connect more or less close regions. T...

4日 前 | 0

回答済み

Matlab Image Cropping problem

Attach your cameraman.tif. Evidently you changed the one that ships with MATLAB because that one is not a color image and your ...

Matlab Image Cropping problem

Attach your cameraman.tif. Evidently you changed the one that ships with MATLAB because that one is not a color image and your ...

5日 前 | 0

| 採用済み

回答済み

create a vector without for

Try a = 1 : 10 b = 1 : 10 ... j = 1 : 5 outputVector = [a, b, c, d, e, f, g, h, i, j]

create a vector without for

Try a = 1 : 10 b = 1 : 10 ... j = 1 : 5 outputVector = [a, b, c, d, e, f, g, h, i, j]

5日 前 | 0

回答済み

How to append fields of a structure from different/many script file?

If you want network to have the "node" field you modified inside of the app() function, then you need to return network from the...

How to append fields of a structure from different/many script file?

If you want network to have the "node" field you modified inside of the app() function, then you need to return network from the...

5日 前 | 0

| 採用済み

回答済み

How can I turn the following code to a surface plot

Use surf() surf(X(:,1), X(:,2), X(:,3), 'EdgeColor', 'none'); If that doesn't work, attach your X, Y, E, F, and k in a .mat fi...

How can I turn the following code to a surface plot

Use surf() surf(X(:,1), X(:,2), X(:,3), 'EdgeColor', 'none'); If that doesn't work, attach your X, Y, E, F, and k in a .mat fi...

5日 前 | 0

回答済み

How to prevent addition from showing up in command window

Try this: numberOfTerms = 10; maxIterations = 1000000; % To prevent infinite loops. loopCounter = 1; theError = 1; while th...

How to prevent addition from showing up in command window

Try this: numberOfTerms = 10; maxIterations = 1000000; % To prevent infinite loops. loopCounter = 1; theError = 1; while th...

5日 前 | 0

回答済み

RMSE between original and predicted values.

Without any other information, the maximum likelihood prediction for every element would be the mean of the entire signal. But ...

RMSE between original and predicted values.

Without any other information, the maximum likelihood prediction for every element would be the mean of the entire signal. But ...

5日 前 | 0

回答済み

Interpolate 1 array to another

If you have the Image Processsing Toolbox, use imresize(): array1NewSize = imresize(array1, size(array2));

Interpolate 1 array to another

If you have the Image Processsing Toolbox, use imresize(): array1NewSize = imresize(array1, size(array2));

5日 前 | 0

回答済み

Multiple Linear Regression using fitlm function

Why not do coefficients = y \ x; where y and x are tall matrices that have your observation values listed? (Or maybe it's y/x...

Multiple Linear Regression using fitlm function

Why not do coefficients = y \ x; where y and x are tall matrices that have your observation values listed? (Or maybe it's y/x...

5日 前 | 1

回答済み

How to apply thresholding at different parts of an image?

I think this is simply a labeling problem so you can use the built-in function bwlabel(). You said you have a threshold for eve...

How to apply thresholding at different parts of an image?

I think this is simply a labeling problem so you can use the built-in function bwlabel(). You said you have a threshold for eve...

5日 前 | 0

回答済み

How to call variable (with index) using string?

Ignoring the probably bad idea that these are variable names that you will refer to later and try to use (because I'm sure Steph...

How to call variable (with index) using string?

Ignoring the probably bad idea that these are variable names that you will refer to later and try to use (because I'm sure Steph...

6日 前 | 0

回答済み

Why is N not being displayed?

Because you initialized error to 1 so it never enters the while loop at all. By the way, do not call your variables "error", "s...

Why is N not being displayed?

Because you initialized error to 1 so it never enters the while loop at all. By the way, do not call your variables "error", "s...

6日 前 | 0

回答済み

Reverse calculate a table of values

Edited according to your new info in your comment to Star: If the desired Z value is definitely in your Z matrix, then you can ...

Reverse calculate a table of values

Edited according to your new info in your comment to Star: If the desired Z value is definitely in your Z matrix, then you can ...

6日 前 | 1

回答済み

Sequence a_n =1/n

See The FAQ. It answers the question. Look at the rest of the FAQ for lots more goodies.

Sequence a_n =1/n

See The FAQ. It answers the question. Look at the rest of the FAQ for lots more goodies.

6日 前 | 0

回答済み

Data interpolation from array

Depends. What to the columns and rows represent? I'd probably say just use interp1() for each column one at a time. Attach ...

Data interpolation from array

Depends. What to the columns and rows represent? I'd probably say just use interp1() for each column one at a time. Attach ...

6日 前 | 0

回答済み

I am doing a project on determining the qulality of rice seeds using image processing. How do I measure the length, breadth, eccentricity etc of the grain using the image of the grains as an input?

See my Image Segmentation Tutorial. It will show you the basics of image segmentation and measurement of parameters.

I am doing a project on determining the qulality of rice seeds using image processing. How do I measure the length, breadth, eccentricity etc of the grain using the image of the grains as an input?

See my Image Segmentation Tutorial. It will show you the basics of image segmentation and measurement of parameters.

6日 前 | 0

回答済み

We need to install Global Optimization Tool

Contact tech support by telephone and ask for Installation for the fastest (and free) help.

We need to install Global Optimization Tool

Contact tech support by telephone and ask for Installation for the fastest (and free) help.

7日 前 | 1

回答済み

Is there a way for 'Smart Breaking' of code lines?

Do you want to split these lines into multiple lines manually, or automatically via a script? You can split any line apart as l...

Is there a way for 'Smart Breaking' of code lines?

Do you want to split these lines into multiple lines manually, or automatically via a script? You can split any line apart as l...

7日 前 | 0

回答済み

Report bug on document of gmres

On the bottom of the documentation for any function, click on one of the 5 stars. It will bring up a box that asks you why you ...

Report bug on document of gmres

On the bottom of the documentation for any function, click on one of the 5 stars. It will bring up a box that asks you why you ...

7日 前 | 1

| 採用済み

回答済み

Rotate a 3D data cloud to align with one axis

You might be looking for the view() function, if you want to rotate the whole coordinate system (data plus axes) so that you're ...

Rotate a 3D data cloud to align with one axis

You might be looking for the view() function, if you want to rotate the whole coordinate system (data plus axes) so that you're ...

8日 前 | 0

回答済み

Normalise data in Matlab

If you have data for only some (x,y) locations and then you want to interpolate data values for the missing (x,y) locations, the...

Normalise data in Matlab

If you have data for only some (x,y) locations and then you want to interpolate data values for the missing (x,y) locations, the...

8日 前 | 0

回答済み

Adding text to axis label.

Use the xlabel() and ylabel() commands instead. xlabel('RWD','FontSize',8, 'FontWeight','bold'); If you want to use text() bec...

Adding text to axis label.

Use the xlabel() and ylabel() commands instead. xlabel('RWD','FontSize',8, 'FontWeight','bold'); If you want to use text() bec...

8日 前 | 0

回答済み

How to sort filenames that are stored by dir command

It's best if you can create the filenames with leading zeros, if you can. If you are stuck with those names, see this link on n...

How to sort filenames that are stored by dir command

It's best if you can create the filenames with leading zeros, if you can. If you are stuck with those names, see this link on n...

8日 前 | 0

回答済み

Image as function input

Get rid of the "clear" in that function, after the tic statement. That clear is deleting whatever you passed in for img and o...

Image as function input

Get rid of the "clear" in that function, after the tic statement. That clear is deleting whatever you passed in for img and o...

8日 前 | 0

| 採用済み

回答済み

How to construct a feature matrix X where rows correspond to pixels and columns correspond to features?

What are the features? The lab values? Have you tried just using brackets and parentheses? labImage = rgb2lab(rgbImage); lIm...

How to construct a feature matrix X where rows correspond to pixels and columns correspond to features?

What are the features? The lab values? Have you tried just using brackets and parentheses? labImage = rgb2lab(rgbImage); lIm...

8日 前 | 1

回答済み

writing into an image does not work as expected

Try to make it a uint8 image: newImage = ones(10, 10, 3, 'uint8); The problem was that it was double, and if it's double it ex...

writing into an image does not work as expected

Try to make it a uint8 image: newImage = ones(10, 10, 3, 'uint8); The problem was that it was double, and if it's double it ex...

8日 前 | 0

| 採用済み

回答済み

how to calculate the distance between different pixels

Try this to get the mean separation: clc; % Clear the command window. close all; % Close all figures (except those of imto...

how to calculate the distance between different pixels

Try this to get the mean separation: clc; % Clear the command window. close all; % Close all figures (except those of imto...

8日 前 | 1

回答済み

Can I plot axis on top of a figure

See attached demos where I inset an axes on top of another, underneath axes.

Can I plot axis on top of a figure

See attached demos where I inset an axes on top of another, underneath axes.

9日 前 | 0

回答済み

How to display two things on one line?

Use fprintf(): fprintf('The first random variable is %d.\n', x);

How to display two things on one line?

Use fprintf(): fprintf('The first random variable is %d.\n', x);

9日 前 | 0