Risposto
Why are the peaks of my spectrum not exactly at the frequencies of my sinusoidal input signal?
Hi Luc, I don't believe that the fft or ifft is necessarily inaccurate just because it is discrete or has finite boundaries. Y...

quasi 10 anni fa | 0

| accettato

Risposto
Combine phase and magnitude of a 2D fourier transform in one image?
Hello Dai, If you are not aware of the function hsv2rgb you should check into it, since if you properly input mag and phase it ...

quasi 10 anni fa | 0

| accettato

Risposto
Evaluate integral of vectorial function
Hello Davide, I believe an explicit solution is cvec = .01:.01:20; q = []; for c = cvec R = roots([1 0 -2 -c]); ...

quasi 10 anni fa | 0

Risposto
I cant solve my bessel function Help Please. I need Jv and Yv solution.
Hi Furkan, these are bessel functions of order 5 and 1/4 respectively, see Matlab besselj and bessely.

quasi 10 anni fa | 0

Risposto
force the x axis beginning from zero at the specific zone of plot after zooming
Hello Mohammed, Is 'zoom yon' what you are looking for? After that command, the plot zooms in y but x is unaffected.

quasi 10 anni fa | 0

| accettato

Risposto
spectrum of a signal
Hi s.a., It's good to do this by fft, but it's also not bad to write down the solution and take a look. If w and w' are meant t...

quasi 10 anni fa | 0

Risposto
Solving closed-form solution of integral by Matlab!!!
Hi kader, This depends on what you consider to be closed form. I assume the factor in front is 1/[(1+y)(a+y)(b+y)]. You can s...

quasi 10 anni fa | 0

Risposto
Approximation of a B-H curve
Hi Huy, First of all I was able to plot your curve from the .mat file provided, although since it is a short file I think it wo...

quasi 10 anni fa | 1

| accettato

Risposto
Matrix manipulation and matrix dimensions
Hello Amine, This is only an answer if the following idea is correct: For a given 5x1 (call it y) and if B is mx5, I think you...

quasi 10 anni fa | 1

Risposto
Can't find error in code.
Hi David, [This is a new answer since modifying my original erroneous answer may not be the most efficient way to go.] The e...

quasi 10 anni fa | 1

| accettato

Risposto
Can't find error in code.
Hi David, Looks like the parentheses for line 3 aren't correct after all. Needs one more parenthesis at the end of the state...

quasi 10 anni fa | 1

Risposto
What is the problem with my noise removal function?
Hi Jake, You have the right idea but there need to be some changes. First of all, you have for row = a(ii:jj) but tha...

quasi 10 anni fa | 0

| accettato

Risposto
Motion of a body around a central one - minimize error
Hi mms^2, This is happening because the expression you have been using for angular momentum is incorrect. Not counting multipl...

quasi 10 anni fa | 2

| accettato

Risposto
Maximum Values of Matrix Subrows
ADD, ok here is one way to do this. It does modify the matrix in order to get the answer, so in this script file M gets changed...

quasi 10 anni fa | 0

Risposto
how to find magnitude and phase of fft output signal?
Hello Khaled, If you have t=0 as the first element of a uniform time array, then calculating y from that and taking the fft wil...

quasi 10 anni fa | 0

Risposto
Maximum Values of Matrix Subrows
ADD, if I understand the question correctly, for matrix M this would be a = max(M,[ ],2) where the 2 is for max along rows inste...

quasi 10 anni fa | 0

Risposto
Matlab area of triangle question
Hello Bob, The good thing is that you are doing this with vectors of values rather than using for loops. Vectorized code is ge...

quasi 10 anni fa | 0

| accettato

Risposto
How to discover where code ends.
Hello DJ, Looks like your very last 'end' statement needs to be moved up about half a dozen lines so it goes with the second-to...

quasi 10 anni fa | 0

Risposto
Don't understand why I am getting this error: "Error using isosurface (line 75); V must be a 3D array."
Hi Joanna, The problem appears to be with the variable p_x which is not correctly defined. In the p_x function it is not a goo...

quasi 10 anni fa | 0

Risposto
How do I get excatly the same peak amplitude versus frequency when performing FFT?
Hi Bagus, There are a couple of things going on here. First, you are plotting out only one half of the frequency array, so you...

quasi 10 anni fa | 0

| accettato

Risposto
axis settings for figure in matlab
Hello SSR, go to 'help ylim' and take a look at the first paragraph, where you can set limits for the y axis

quasi 10 anni fa | 0

| accettato

Risposto
Unexpected phases in fresnel diffraction using fft2
Hello Adrian, Could you live with a power-of-2 fft and an *odd* size square? Changing 119:138 to 120:138 puts the center of t...

quasi 10 anni fa | 1

| accettato

Risposto
It's right the next code
Hi Julian, Good plots. Taking the fft of the square wave in c as an example, abs(amplitude) of the first harmonic should be ...

quasi 10 anni fa | 0

Risposto
How to display a string in a matrix
Hi retro, the reason for this is that zeros(n,n), is a matrix of double precision numbers. When you try to insert '.', Matlab c...

quasi 10 anni fa | 0

| accettato

Risposto
I am writing a code for generating Fraunhofer diffraction pattern from a circular slit by making use of 2D FFT. I am not getting Airy disk pattern as the output. I could not find what is wrong with my code?
Hello Athul, It appears that the code is working more or less as it should. I don't understand where the step size expression ...

quasi 10 anni fa | 0

Risposto
Why is my plot plotting blank?
x

quasi 10 anni fa | 0

Risposto
Bizarre result in manual image filtering
Hello Hyosub, [1] first of all if you don't want off-by-one problems, your x grid should be -256:255. [2] the reason you are g...

quasi 10 anni fa | 0

| accettato

Risposto
convert angle over time to rotation speed
Hello Bas, Take a look at the 'unwrap' function, which will take out the discontinuous jumps and give you a smooth function (wi...

quasi 10 anni fa | 1

Risposto
Undefined function 'sind' for input arguments of type 'char'.
Christian, on the third line before the end you need p1 = input('coordinates')

quasi 10 anni fa | 1

Risposto
why does image translation by shifting fourier phases result in image contrast inversion?
Hello Elizabeth, This is a bit speculative for an answer, but I believe you need a different [xf yf] frequency grid. I am assu...

quasi 10 anni fa | 0

| accettato

Carica altro