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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 0

Respondida
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() ...

alrededor de 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

Respondida
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'); ...

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 2

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

Cargar más