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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 1

| accepted

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

9 years ago | 1

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

9 years ago | 1

| accepted

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

9 years ago | 1

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

9 years ago | 0

| accepted

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

9 years ago | 2

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

Answered
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

9 years ago | 0

| accepted

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

9 years ago | 1

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

Answered
Why is my plot plotting blank?
x

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 1

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

9 years ago | 1

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

9 years ago | 0

| accepted

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

9 years ago | 0

Answered
Why do I get an index error?
Hi Sherwin, May be there shouldn't be negative indices, but there actually *are* negative indices, as Guillaume has pointed out...

9 years ago | 0

Answered
low-pass exponential filter - fourier space
Hi Aude, To construct a filter in this situation it's convenient to use a frequency array with zero frequency in the center. I...

9 years ago | 0

| accepted

Load more