This is a program in which we are detecting error in rotating machines by recording their sound and passing it through matlab and comparing the different signals.
Best Answer
It takes the Fourier transform of the signal, subtracts the D-C offset, computes the power as the square of the magnitude of the Fourier transformed signal, convolves it with a Hanning window, and plots it.
It converts the RED channel (assuming an RGB image) into a binary image, based on the red (first) channel. Or if the image is an LAB image, it might be working on the L* channel. You have not said how the image is stored.
In any case, it converts anything into white that is above 160 in that channel. All other pixels go to black. This happens because inequality tests return a 0 or 1, depending on the truth of the test as done.
Best Answer