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

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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() ...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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'); ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 2

| A accepté

Réponse apportée
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-...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 1

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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....

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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....

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

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

presque 3 ans il y a | 0

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

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Charger plus