Answered
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...

11 days ago | 0

Answered
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...

11 days ago | 0

Answered
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...

11 days ago | 0

| accepted

Answered
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...

11 days ago | 1

Answered
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...

11 days ago | 0

| accepted

Answered
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...

11 days ago | 1

Answered
Can I plot axis on top of a figure
See attached demos where I inset an axes on top of another, underneath axes.

11 days ago | 0

Answered
How to display two things on one line?
Use fprintf(): fprintf('The first random variable is %d.\n', x);

11 days ago | 0

Answered
rotating and saving images to folder: error during loop
Teshan: I believe the problem comes about because you are, in subsequent runs, processing images from a prior run. You should ...

11 days ago | 1

| accepted

Answered
Why 4.8/1.6 is not equal to 3?
See the FAQ: Why is 0.3 - 0.2 - 0.1, or similar, not equal to zero?

11 days ago | 0

Answered
For loop not calculating properly
Don't use sum as the name of your variable since that's already the name of a built-in function. You need to assign N outside t...

12 days ago | 0

| accepted

Answered
How to find the valley areas of the image?
In your duplicate post I referred you to Vision Bob where there are dozens of papers on this 11.3.3 Specific 3-D Models, Rock A...

12 days ago | 0

| accepted

Answered
How to reverse the order of words in string
Sounds like homework, so here is a hint towards the solution: str = 'Hello. I. am. Here.' words = strsplit(str) reverseWords ...

12 days ago | 0

Answered
Hello! Can you help me with this?
Here's a start. Snippet to draw points and fit a spline curve through them with a lot more points: numPoints = 7; hFig = figu...

13 days ago | 0

Answered
scatteredInterpolant gives null matrix for collinear data . .
Use interp1() instead.

15 days ago | 0

Answered
Scaling distortion on images
Use padarray().

15 days ago | 0

Answered
Color different marker style according to different variables
It looks like (though I haven't tried it) that you can use the 'clr' option of gscatter to specify what color each group is.

17 days ago | 0

Answered
Where is the logic failure in my code ?
Use true or false, not 'True' or 'False'. No quotes or capitalization required. Or don't even use them at all. Your code co...

17 days ago | 0

Answered
how to view this image enlargely
No idea what you want. I don't know what "enlarge my output image for column" means exactly. Try zoom() or imresize() or repma...

17 days ago | 0

| accepted

Answered
How to detect all the pixel intensity values in a grayscale image and store them?
You can call impixelinfo() to let you see the gray levels as you mouse around over the image. To get the gray level of the imag...

17 days ago | 1

| accepted

Answered
How to perform shape factor analysis (circularity) on list of x, y coordinates
There is a new function bwferet() that you might want to look into. You might want to look into edge linking algorithms to clos...

17 days ago | 1

Answered
[Assignment]Write a function called saddle that finds saddle points in the input matrix M.
Try this: numPoints = 7; M = randi(9, numPoints, numPoints) % M = [1,2,3,4,4,3,2,1] % Sample data rowMaxima = max(M, [], 2) ...

18 days ago | 0

Answered
How to change background color with imrotate function?
Right now there is no option to set the color of the background that is exposed after rotation. You could make a copy of imrota...

18 days ago | 0

Answered
How to define coordinates of orientated BoundingBox for every case?
I just did something very similar last week. What I did was to get the coordinates of the 4 corners of the image and then use p...

18 days ago | 0

Answered
how to find the least pixel intensity value for each connected component?
See demo below. Adapt as needed: grayImage = imread('coins.png'); subplot(2, 2, 1); imshow(grayImage); subplot(2, 2, 2); h...

18 days ago | 0

| accepted

Answered
find relationship between age and events
You can call corrcoeff() and pass in the 6 ages, and 6 temperatures from the curve at the same x locations as the ages.

18 days ago | 1

Answered
function to find longest string of consecutive ones
Use findgroups() and regionprops(): s = 'AAAGGTCCATTTTTTTAA' - 'A' g = findgroups(s) for k = 1 : max(g) props = regionprops...

18 days ago | 1

Answered
How to train a own image object using deeplearning ?
The Deep Learning toolbox has dozens of demos. Hopefully one of them is close to what you want to do and you can adapt it. Als...

19 days ago | 0

Answered
filling open gaps in binary image object
I've done image processing on lather/suds/bubbles for several projects. First of all you need to get a good image without specu...

19 days ago | 1

| accepted

Answered
How can I save a image from imshow into a cell array ?
I don't know why you're trying to store anything in a cell array. If you have tons of training images, you may not even have en...

19 days ago | 0

Load more