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

más de 9 años hace | 0

| aceptada

Respondida
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]); ...

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

Respondida
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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

Respondida
Why is my plot plotting blank?
x

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

Respondida
Matrix dimension not agree in matrix vector operation
Hello Christine, One of the quirkier aspects of Matlab is that rand(n) and some similar functions give you a square matrix, 3x3...

más de 9 años hace | 0

Cargar más