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

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 1

답변 있음
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...

거의 3년 전 | 1

| 수락됨

답변 있음
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...

거의 3년 전 | 0

답변 있음
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() ...

거의 3년 전 | 1

| 수락됨

답변 있음
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...

거의 3년 전 | 1

| 수락됨

답변 있음
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 ...

거의 3년 전 | 0

| 수락됨

답변 있음
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...

거의 3년 전 | 0

답변 있음
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'); ...

거의 3년 전 | 0

| 수락됨

답변 있음
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...

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 1

| 수락됨

답변 있음
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...

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 1

답변 있음
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...

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 0

답변 있음
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년 전 | 2

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

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

거의 3년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

더 보기