Answered
delete special characters (\ / : * " < > |) in char
You could also use regexprep(), though perhaps using erase() is more convenient. % using numbered variables only makes processi...

2 years ago | 0

Answered
I have a matrix. I want to count number of only those zeros which are lying between 2 sets of consecutive nonzero values on each side. How to do? Desired result given below
I'm sure this can be simplified. I just felt like using regexp() for this. A = [0 0 3 4 1 0 7 8; 6 8 0 4 5 1 0 0; 0...

2 years ago | 1

Answered
Contour not working: The delineation erases (or minimizes) previous data from a plot
Both the image object created by imagesc() and the contour object created by contour() rely upon the current axes colormap and c...

2 years ago | 1

| accepted

Answered
How to read images in a folder
There are already many examples that I don't need to repeat, but I have my own ways of doing things. I'm only throwing this her...

2 years ago | 0

Answered
indices must either be real?
You're creating a variable called real, which conflicts with the function real(). Consequentially, when you try to call real() ...

2 years ago | 1

| accepted

Answered
convert array vector in matrix
Consider the example: % a struct array with a field of column vectors S = struct('field1',(1:10).'); S = repmat(S,10,1); D...

2 years ago | 1

| accepted

Answered
How to convert logical form to binary form image?
A binary image is an image with only two possible pixel values -- typically the values representing black and white in whatever ...

2 years ago | 0

| accepted

Answered
How to convert GIF image into JPG without making it gray.
All GIF files are indexed color. JPG images are not indexed color; most are RGB. While ind2rgb() could be used to convert to R...

2 years ago | 0

Answered
How to open 2D image as file attached.
Nevermind. That was simpler than I thought. fid = fopen('jaszak1.int', 'r', 'ieee-le'); data = fread(fid, inf, '*uint16'); ...

2 years ago | 0

| accepted

Answered
how to convert RGB image into grayscale pixel by pixel using for loop using matlab
Would you ask someone to move a pile of sand with a pair of tweezers when you have a shovel laying at your feet? ipict = mean(r...

2 years ago | 0

Answered
RGB to grayscale conversion
This is likely one of a few things unrelated to the conversion. Either OP was working with integer-class images and truncated...

2 years ago | 0

Answered
How to control the font of Contour "ShowText" option?
If I recall off the top of my head, the level labels created in 'auto' mode are different than those created in 'manual' mode (i...

2 years ago | 0

Answered
Changing the marker shape or aspect ratio in a legend
Here's one way. You might also want to adjust the text object positions as well. % Example data means = [10 40 50 60; ...3...

2 years ago | 1

| accepted

Answered
How to plot single colorful line?
This can't be done with a single line object. It can be done with multiple line objects or with patch objects. This thread has...

2 years ago | 0

Answered
what are the perfect skin colors values?
After directing other similar threads to this one, I saw the FEX links in the sidebar and decided to see what's available. In o...

2 years ago | 1

Answered
Please Help about HSV Skin Detection..
There is no such thing. See the answers here: https://www.mathworks.com/matlabcentral/answers/510903-what-are-the-perfect-skin...

2 years ago | 0

Answered
skin tone detection matlab program in ycbcr and hsv colour models.
What is the "range of skin" in YCbCr or any other space? Given no constraints and no concern for illumination conditions, you're...

2 years ago | 0

Answered
Colormap not showing properly
This looks exactly like what should be expected. When you quantize your z data to 15 levels, you have less z-resolution than wh...

3 years ago | 2

| accepted

Answered
Change to Text Colour to "RED" after a Logical statement is True and the "Return" Function NOT Terminating
You can try using cprintf() from the File Exchange. https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-...

3 years ago | 0

Answered
Can Subplots have own colormaps?
Yes, but you have to be careful. By default, colormap() applies to the current figure. If you want it to apply to the current ...

3 years ago | 1

Answered
Extract the "overall colors" of an image to apply another?
The paper that @Image Analyst linked is probably the ideal, but nobody posted a MATLAB implementation yet. I think there are a ...

3 years ago | 0

| accepted

Answered
Rounded axis in plot
Here's one terrible way: % normalized radius of plot box corners cornerrad = 0.1; % we have some sort of object in the axes...

3 years ago | 0

Answered
Will the MATLAB Answers community diminish/obsolete with the rise of AI-based chatbots?
Plenty of other forums are currently getting swamped with reputation farmers posting zero-effort AI babble. SE has already opte...

3 years ago | 1

Answered
How do you know the font size in an image?
The short answer is that you probably can't -- at least not accurately, consistently, or in the manner that's probably expected....

3 years ago | 0

Answered
Why doesn't the MATLAB onramp play?
Does the player itself fail to load? Is the player loading but failing to respond to inputs? Is the player loading and respond...

3 years ago | 1

Answered
How to interpret info about release compatibility on the File Exchange?
It seems confusing because it is confusing. I usually don't put much weight in those tags. I just look at the version history....

3 years ago | 0

| accepted

Answered
PN Sequence Generator Code (2003)
I don't see anything that's version-dependent here. I just see a bunch of problems likely caused by copying and pasting code fr...

3 years ago | 0

Answered
Image 2:1
This is essentially a duplicate of this question https://www.mathworks.com/matlabcentral/answers/1977519-image-zoom-2-1 Since ...

3 years ago | 0

Answered
Image zoom 2:1
% these aren't JPGs A = imread('image1.bmp'); B = imread('image2.bmp'); C = imread('image3.bmp'); D = imread('image4.bmp')...

3 years ago | 0

Answered
How to detect green laser spot with nearly white center
here's this, FWIW. inpict = imread('dot.png'); % get bright spots that coincide with green spots % centers of green spots d...

3 years ago | 0

Load more