Answered

How to use matlab function to fill or label the previous or next column cells with respect to certain column of of a matrix with a number (3)

Try imdilate() -- it's a local max filter. se = [0,0,0;1,1,1;1,1,1] outputMatrix = imdilate(inputMatrix, se);

How to use matlab function to fill or label the previous or next column cells with respect to certain column of of a matrix with a number (3)

Try imdilate() -- it's a local max filter. se = [0,0,0;1,1,1;1,1,1] outputMatrix = imdilate(inputMatrix, se);

14 dagen ago | 1

| accepted

Answered

How to create a random distribution of 2 words in 30 places?

Try this: sentence = []; for k = 1 : 30 sentence = sprintf('%sword%d ', sentence, k); end sentence replacementWords = {'m...

How to create a random distribution of 2 words in 30 places?

Try this: sentence = []; for k = 1 : 30 sentence = sprintf('%sword%d ', sentence, k); end sentence replacementWords = {'m...

14 dagen ago | 0

Answered

How to find out the points collection which has the same minimum distance to the boundary of a closed image

Try imdilate() to expand it out 5 pixels. xy = [10,30; 20,40; 50,30; 50,20; 40,20; 30,10; 20,10; 10,20] x = xy(:, 1); y = xy(...

How to find out the points collection which has the same minimum distance to the boundary of a closed image

Try imdilate() to expand it out 5 pixels. xy = [10,30; 20,40; 50,30; 50,20; 40,20; 30,10; 20,10; 10,20] x = xy(:, 1); y = xy(...

14 dagen ago | 1

| accepted

Answered

How to make a code using flip & slide method and without using conv function ?

It's simply convolution: x = [1 2 3]; h = [4 5 6]; output = conv(x, h) output = 4 13 28 27 18

How to make a code using flip & slide method and without using conv function ?

It's simply convolution: x = [1 2 3]; h = [4 5 6]; output = conv(x, h) output = 4 13 28 27 18

14 dagen ago | 1

| accepted

Answered

Line or segment of line that touch all pixels in a structure

Maybe try bwdistgeodesic().

Line or segment of line that touch all pixels in a structure

Maybe try bwdistgeodesic().

14 dagen ago | 0

Answered

Noise removal in image segmentation

Well knotholes are certainly objects so it makes sense that it found them. If you just want things that stick up above the surf...

Noise removal in image segmentation

Well knotholes are certainly objects so it makes sense that it found them. If you just want things that stick up above the surf...

14 dagen ago | 0

Answered

Is Walter Roberson a real person, or is he some kind of Matlab AI robot?

Yes, Walter is a real person. In fact at the Annual Meetings in June of this year, he received a highly prestigious MATLABBY Aw...

Is Walter Roberson a real person, or is he some kind of Matlab AI robot?

Yes, Walter is a real person. In fact at the Annual Meetings in June of this year, he received a highly prestigious MATLABBY Aw...

14 dagen ago | 9

Answered

How do I draw the scatterplot of an RGB image?

You need to use colorcloud(). It does a 3-D scatterplot of the RGB gamut.

How do I draw the scatterplot of an RGB image?

You need to use colorcloud(). It does a 3-D scatterplot of the RGB gamut.

14 dagen ago | 0

Answered

T-test on two classifiers

Do you have ground truth for your data? If so, why not simply get the accuracy percentage for each classifier?

T-test on two classifiers

Do you have ground truth for your data? If so, why not simply get the accuracy percentage for each classifier?

16 dagen ago | 0

Answered

I've created my own Otsu thresholding function, but is isn't working properly

See how the Mathworks does it: >> edit otsuthresh.m

I've created my own Otsu thresholding function, but is isn't working properly

See how the Mathworks does it: >> edit otsuthresh.m

16 dagen ago | 0

Answered

How to create a RGB image with reflectances ?

See File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/51560-get_xyz

How to create a RGB image with reflectances ?

See File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/51560-get_xyz

16 dagen ago | 1

Answered

Checking if word/words are present in a sentence in a table cell.

Try contains(). if contains(ca{2, 1}, 'M3 TRIPPED') % It contains that phrase in row 2, column 1 of cell array called ca ...

Checking if word/words are present in a sentence in a table cell.

Try contains(). if contains(ca{2, 1}, 'M3 TRIPPED') % It contains that phrase in row 2, column 1 of cell array called ca ...

18 dagen ago | 0

| accepted

Answered

Get pixel of data coordinate

You can use getpixel() to get the pixel value, or use indexing, like pixelValue = yourImage(y, x, :). To put an arrow into the ...

Get pixel of data coordinate

You can use getpixel() to get the pixel value, or use indexing, like pixelValue = yourImage(y, x, :). To put an arrow into the ...

19 dagen ago | 0

Answered

How can I remove the toolbar from the axes, but keep it at the top of the window?

See the official toolbar answer here in this Mathworks Support Answer In short: addToolbarExplorationButtons(gcf) % Adds butto...

How can I remove the toolbar from the axes, but keep it at the top of the window?

See the official toolbar answer here in this Mathworks Support Answer In short: addToolbarExplorationButtons(gcf) % Adds butto...

23 dagen ago | 2

Answered

[Solved] Fitting exponential decay function

You can use fitnlm(). See attached demo. I can't use your actual data because you forgot to attach it.

[Solved] Fitting exponential decay function

You can use fitnlm(). See attached demo. I can't use your actual data because you forgot to attach it.

23 dagen ago | 1

Answered

How to generate random projection matrices?

Not sure what you mean by projection, but the radon transform does projections. That's its claim to fame. It basically projects...

How to generate random projection matrices?

Not sure what you mean by projection, but the radon transform does projections. That's its claim to fame. It basically projects...

23 dagen ago | 0

Answered

How to set boundaries between 3 curves and shade the region

Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.

How to set boundaries between 3 curves and shade the region

Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.

25 dagen ago | 1

Answered

How to Automatically remove noise using Image historgram based?

I don't believe so, at least not via a global operation, since the noise is likely very close to the local means. So you can't ...

How to Automatically remove noise using Image historgram based?

I don't believe so, at least not via a global operation, since the noise is likely very close to the local means. So you can't ...

25 dagen ago | 1

| accepted

Answered

Z must be matrix, how to determine size of reshape

If they're in a grid in an N-by-3 array, extract them first x = xyz(:, 1); y = xyz(:, 2); z = xyz(:, 3); Then try surf(x, y...

Z must be matrix, how to determine size of reshape

If they're in a grid in an N-by-3 array, extract them first x = xyz(:, 1); y = xyz(:, 2); z = xyz(:, 3); Then try surf(x, y...

25 dagen ago | 0

Answered

how to stop changing of a variable?

Instead of this if s<200 logic=1; else logic=0; do this logic = s < 200; % Just one line, not a whole if/else bloc...

how to stop changing of a variable?

Instead of this if s<200 logic=1; else logic=0; do this logic = s < 200; % Just one line, not a whole if/else bloc...

26 dagen ago | 0

Answered

Unable to acquire image with connected teledyne dalsa camera

Contact the manufacturer. You'll need to "Register a third party adapter" from the pulldown menu in imaqtool.

Unable to acquire image with connected teledyne dalsa camera

Contact the manufacturer. You'll need to "Register a third party adapter" from the pulldown menu in imaqtool.

26 dagen ago | 0

Answered

Can I acess value of variable in legend of plot

I would make up each legend using sprintf, then call legend legend1 = sprintf('Only Solar Generation[Integrated = %0.2f KW]', n...

Can I acess value of variable in legend of plot

I would make up each legend using sprintf, then call legend legend1 = sprintf('Only Solar Generation[Integrated = %0.2f KW]', n...

26 dagen ago | 0

| accepted

Answered

How to display the two biggest blobs in terms of area?

It'w very bad practice to call your image i (the imaginary variable). Call it binaryImage, mask, or BW instead. You might want...

How to display the two biggest blobs in terms of area?

It'w very bad practice to call your image i (the imaginary variable). Call it binaryImage, mask, or BW instead. You might want...

26 dagen ago | 1

Answered

How can I find RGB values of a matrix of coordinates of an image?

(x,y) is NOT (row, column) -- it's (column, row). You've made a very common beginner mistake. Put y first -- P(y, x) x = roun...

How can I find RGB values of a matrix of coordinates of an image?

(x,y) is NOT (row, column) -- it's (column, row). You've made a very common beginner mistake. Put y first -- P(y, x) x = roun...

26 dagen ago | 0

| accepted

Answered

Why are condition2 condition3 and condition4 not logical?

You defined them to be doubles by instantiating them with the zeros() function. Try using false() instead of zeros(): conditio...

Why are condition2 condition3 and condition4 not logical?

You defined them to be doubles by instantiating them with the zeros() function. Try using false() instead of zeros(): conditio...

26 dagen ago | 0

| accepted

Answered

Figuring out of a photo of a shoe is an Air Jordan 1 show

I'd use deep learning.

Figuring out of a photo of a shoe is an Air Jordan 1 show

I'd use deep learning.

26 dagen ago | 0

Answered

Attempted to access Tr(4); index out of bounds because numel(Tr)=3

It's hard to decypher this uncommented alphabet soup (without spending a lot more time), but all we know for sure is that the lo...

Attempted to access Tr(4); index out of bounds because numel(Tr)=3

It's hard to decypher this uncommented alphabet soup (without spending a lot more time), but all we know for sure is that the lo...

27 dagen ago | 0

Answered

Write a function called blur that blurs the input image. The function is to be called like this:

You never assign blurimg to B, so B remains the input image that you assigned it to way up at the top.

Write a function called blur that blurs the input image. The function is to be called like this:

You never assign blurimg to B, so B remains the input image that you assigned it to way up at the top.

28 dagen ago | 0