Answered
Need Help Understanding the 'function_oceanwave()' function
Yes, that's the problem when people write code and don't put in good comments. You don't understand it and now you want us to p...

2 years ago | 1

Answered
What does the >> n = 1:100; >> x = ( (-1).^(n+1) ) ./ (2*n - 1); >> y = sum(x) >>plot(x(1,1:4)) mean?
x is a row vector so it doesn't need two indexes. y is assigned but not used. The plot() plots the first 4 values from the x a...

2 years ago | 0

| accepted

Answered
How to Create a Equidistant histogram
Instead of using histogram which will plot the edges like you have, if you want equal spacing upon display, regardless of what t...

2 years ago | 0

Answered
How can I apply different colors to specific areas of a surface plot?
You can make an image of the colors that you want to have at each location. Then see my attached demo.

2 years ago | 0

Answered
Hi there, I'm encountering an issue and would appreciate your guidance in resolving it.
mode is a built-in function. Don't use it as the name of your variable!! Also, you need to initialize your variables before th...

2 years ago | 1

| accepted

Answered
How to segment image with multiple bounding box coordinates given in excel format.
If you have the bounding box coordinates, you can use imcrop to extract just that rectangle. To process multiple images, see th...

2 years ago | 0

Answered
OCR on binary image
Here's an improvement, though I don't have time to finish it now. % Demo by Image Analyst clc; % Clear the command window. ...

2 years ago | 0

Answered
Program to extract single objects from a image based on the centers of gravity of each object (+ 2-3 pixels outside the hyperbola).
Since you're already using regionprops, you have already segmented the image and have a binary mask. I don't know what a hyperb...

2 years ago | 0

Answered
How many activations are allowed for one license file.
Yes, you can.

2 years ago | 0

Answered
Adding a Column to a Table
To add a column to a table, use addvars help addvars

2 years ago | 1

Answered
[Image Processing] Remove stripes / horizontal streaks in image
Hopefully the white part is not overexposed. If not, then the common way to do it is to take the mean of the image horizontally...

2 years ago | 0

Answered
Can I use student's license for my Master's degree thesis, which is related to a project being developed in the company I work for?
In my opinion, yes, because the code you develop will be directly used in your thesis. Now if your project was totally unrelate...

2 years ago | 0

Answered
how to find pixel values and intensity of grayscale image and plot them (x-axis as pixel value and y-axis as pixel intensity)
I'm not sure why you're taking a histogram of the binary image. I think what you meant was to take the histogram of the masked ...

2 years ago | 0

Answered
How can i superimpose image on plot?
Try this, and see attached demos. Adapt as needed. % Draw a small image inset in the upper right corner of a larger plot. % R...

2 years ago | 0

| accepted

Answered
Remove 'anomalous' blobs in a polygon (polyshape).
First of all, don't use eval: https://matlab.fandom.com/wiki/FAQ#Why_is_it_advised_to_avoid_using_the_%22eval%22_function? Sec...

2 years ago | 0

Answered
Why won't my code run even though it has no errors
You made the common beginner mistake of not having a failsafe in your while loop so you get an infinite loop because your exit c...

2 years ago | 0

| accepted

Answered
Remove noise from an audio file
It's the cocktail party problem. https://en.wikipedia.org/wiki/Cocktail_party_effect Use BSS or ICA. See references below: ...

2 years ago | 0

Answered
Image analysis: separate objects in a 3D model using erosion
Try strel then imerode or imopen on your BI2 array. It should be fairly straigthforward.

2 years ago | 0

Answered
Dicom image segmentation to detect objects with same pixel intensity neighbor
If the other tissue is "touching" the green surface, then it will be tough to distinguish them based on intensity and morphology...

2 years ago | 0

| accepted

Answered
Finding angle Between the bending of finger
Try bwskel. Be careful though because some algorithm that works fine for a computer graphics image may fail miserably for a rea...

2 years ago | 0

Answered
How do I get the brightest pixels from this image?
You should be able to use @bwskel to get the skeleton. Then use the skeleton as a mask to get the pixel values along the ridge....

2 years ago | 0

| accepted

Answered
How can I know which ditribution is appropriate to fit on the generated histogram? and, How can I do that?
I agree with @Star Strider and @the cyclist -- if you can't use the actual distribution and must use a formula, you should use o...

2 years ago | 0

Discussion


The new release is here!
(Sorry - it should be 2023b by now.)

2 years ago | 4

Answered
How to make a random circularly-symmetric gaussian distributed additive noise component with mean 0 and variance (sigma^2)/2?
Not exactly sure what you want, but how about this: g = fspecial("gaussian", 201, 40); % Create Gaussian intensity pattern. im...

2 years ago | 0

Answered
Interpreting the output of regionprops function
Try this: % Measure properties of all the individual blobs in the image. props = regionprops(mask, 'MajorAxisLength', 'MinorAx...

2 years ago | 0

| accepted

Answered
Where can I download the data in excel which is used in MATLAB for example patients.mat etc
On my computer it is here: C:\Program Files\MATLAB\R2023b\toolbox\matlab\demos\patients.mat

2 years ago | 0

Answered
For-loop finding the difference between 7 different arrays
You can't loop it since you chose to have separately named 1-D arrays so you can just do it in 7 lines: A(:,1) = t1(:,1)-tref(:...

2 years ago | 0

Answered
How to trace the minimum and maximum lines of the image of the moiré franges?
To see published algorithms on the topic, see 9.5.3 Optical Interferometry, Moire Patterns https://www.visionbib.com/bibliogra...

2 years ago | 0

Answered
Can I gray out the UIAxes?
To change just about anything you can think of on a graph see the attached demo.

2 years ago | 0

Answered
Matlab function gives 'ans=0' answer problem
Evidently you never took the training onramp course. John gave an excellent explanation. To learn other fundamental yet essent...

2 years ago | 0

Load more