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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 2

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

Mehr laden