Feeds
已回答
Jacobi iterative method in matlab
the expression x_new = (b - A*x + diag(A).*x)./diag(A) works. I don't know if it might run into numerical accuracy issues due...
Jacobi iterative method in matlab
the expression x_new = (b - A*x + diag(A).*x)./diag(A) works. I don't know if it might run into numerical accuracy issues due...
3 days 前 | 0
已回答
convolution integral with ode45
This is a very interesting problem! Convolution of the loss term for the harmonic oscillator. I had been working on some exten...
convolution integral with ode45
This is a very interesting problem! Convolution of the loss term for the harmonic oscillator. I had been working on some exten...
8 days 前 | 0
已回答
convolution integral with ode45
******************** MODIFIED ******(************** because the method suggested here does not work. I took out some us...
convolution integral with ode45
******************** MODIFIED ******(************** because the method suggested here does not work. I took out some us...
11 days 前 | 1
已回答
Understanding recursion for decimal to binary conversion
Hi Kyle, here is an attempt, hope it helps. As Walter has noted, this is not a recursion since the function does not call a pre...
Understanding recursion for decimal to binary conversion
Hi Kyle, here is an attempt, hope it helps. As Walter has noted, this is not a recursion since the function does not call a pre...
14 days 前 | 1
已回答
Imaginary output from arccosine function when the input is close to -1
Hi Ali, The acos and (m dot n) approach is not a good way to go about this at all. It's inaccurate when n is almost equal to -m...
Imaginary output from arccosine function when the input is close to -1
Hi Ali, The acos and (m dot n) approach is not a good way to go about this at all. It's inaccurate when n is almost equal to -m...
1 month 前 | 1
已回答
Sign of lambda.eqlin
Hi Aiden, William's example is f(x) = x^2+y^2 Aeq=[1,1] beq = 1 L(x,lambda) = f(x) + lambda*(Aeq*x'-beq) % conve...
Sign of lambda.eqlin
Hi Aiden, William's example is f(x) = x^2+y^2 Aeq=[1,1] beq = 1 L(x,lambda) = f(x) + lambda*(Aeq*x'-beq) % conve...
1 month 前 | 1
已回答
ilaplace doesn't handle tanh()
Hi marcel, There seems to be some uncertainty about the question, but this answer is for the voltage across the resistor, for a...
ilaplace doesn't handle tanh()
Hi marcel, There seems to be some uncertainty about the question, but this answer is for the voltage across the resistor, for a...
2 months 前 | 0
提问
Iterating the eigenvalue function (eig) produces patterns --- is this a well known result?
Suppose M is a square matrix and [N lambda] = eig(M), so that the columns of N contain the eigenvectors of M and the diagonal ...
3 months 前 | 2 个回答 | 0
2
个回答已回答
Transpose matrix and your transposition
HI Airto, Rather than actually transpose it with the ' (apostrophe) command, you can use zeros(3,3500000); The transpose a...
Transpose matrix and your transposition
HI Airto, Rather than actually transpose it with the ' (apostrophe) command, you can use zeros(3,3500000); The transpose a...
3 months 前 | 1
| 已接受
已回答
How to model a cable passing through a hole in 3D in Simscape?
Hi Soumya, (hypothetical answer since I don't know how details work in Simscape). In your diagram if it's known that the exit ...
How to model a cable passing through a hole in 3D in Simscape?
Hi Soumya, (hypothetical answer since I don't know how details work in Simscape). In your diagram if it's known that the exit ...
3 months 前 | 0
已回答
How to correctly find the solution of a system of equations containing trigonometric functions
Hello yan, This is one of those situations where a multivariable solver is best avoided if possible. With enough variable subs...
How to correctly find the solution of a system of equations containing trigonometric functions
Hello yan, This is one of those situations where a multivariable solver is best avoided if possible. With enough variable subs...
4 months 前 | 0
已回答
can anyone suggest me how to convert binary value to gray code value??
Here I used 'grey' instead of gray since Matlab has a function called gray. n = 4 G = grey(n); IG = igrey(n); nbin = dec2bin...
can anyone suggest me how to convert binary value to gray code value??
Here I used 'grey' instead of gray since Matlab has a function called gray. n = 4 G = grey(n); IG = igrey(n); nbin = dec2bin...
4 months 前 | 0
已回答
How to further utilize the "simplify" function for simplification?
How did an overall factor of theta_dot5 in the question later become sin(theta_5) in the comments ?!? Taking the original posti...
How to further utilize the "simplify" function for simplification?
How did an overall factor of theta_dot5 in the question later become sin(theta_5) in the comments ?!? Taking the original posti...
4 months 前 | 0
| 已接受
已回答
How can I get the correct answer for int(1/x) with symbolic integration?
Hello Georg, I agree that log(|x|) is the correct way to do this, consistent with what tables of integrals have to say. (With ...
How can I get the correct answer for int(1/x) with symbolic integration?
Hello Georg, I agree that log(|x|) is the correct way to do this, consistent with what tables of integrals have to say. (With ...
5 months 前 | 0
| 已接受
已回答
How does sub2ind work with non-integer values?
Hi Saygin, Interesting behavior. The help for sub2ind says it 'returns the linear index equivalent' and I guess they really me...
How does sub2ind work with non-integer values?
Hi Saygin, Interesting behavior. The help for sub2ind says it 'returns the linear index equivalent' and I guess they really me...
5 months 前 | 3
已回答
Spectrum block shows incorrect dbm value
Hi Sergei, The plot shows peaks at both positive and negative frequencies. Each of those equal size peaks contains half of the...
Spectrum block shows incorrect dbm value
Hi Sergei, The plot shows peaks at both positive and negative frequencies. Each of those equal size peaks contains half of the...
5 months 前 | 1
| 已接受
已回答
Positive Roots of bessel functions.
Hi Javeria, here is a function besse0j to calculate the roots of J and J'. (at the origin, Jn(0) = 0 for n>0 but these zeros ar...
Positive Roots of bessel functions.
Hi Javeria, here is a function besse0j to calculate the roots of J and J'. (at the origin, Jn(0) = 0 for n>0 but these zeros ar...
6 months 前 | 0
已回答
Can we find derivative of bessel functions in matlab directly?
Hi Javeria, Here is a function that produces J'm(x) for integer m. function y = besseljd(n,x,opt) % derivative of bessel fu...
Can we find derivative of bessel functions in matlab directly?
Hi Javeria, Here is a function that produces J'm(x) for integer m. function y = besseljd(n,x,opt) % derivative of bessel fu...
6 months 前 | 0
已回答
solving system of equations
Hi Javeria, If it's not required to solve this in the way you mention, there is a better way. Assume that x2 is positive or ze...
solving system of equations
Hi Javeria, If it's not required to solve this in the way you mention, there is a better way. Assume that x2 is positive or ze...
6 months 前 | 0
已回答
Why am I only getting the upper sideband when multiplying complex signals?
Hi Jared, You probably can't reproduce the result with a single operation. When you use the 'complex' option, the resulting wa...
Why am I only getting the upper sideband when multiplying complex signals?
Hi Jared, You probably can't reproduce the result with a single operation. When you use the 'complex' option, the resulting wa...
6 months 前 | 0
已回答
The coefficients of a Hermite polynomial
Hi Magdy, For a change of pace, here is a function that calculates the coefficents of Hn by recursion. I didn't want to get in...
The coefficients of a Hermite polynomial
Hi Magdy, For a change of pace, here is a function that calculates the coefficents of Hn by recursion. I didn't want to get in...
6 months 前 | 0
已回答
why mod(rref(A), 2) does not give the correct result?
Hi Lily, Although c is a linear combination of a and b mod 2, rref does not know anything about mod 2. rank([a b c]) ans = ...
why mod(rref(A), 2) does not give the correct result?
Hi Lily, Although c is a linear combination of a and b mod 2, rref does not know anything about mod 2. rank([a b c]) ans = ...
7 months 前 | 0
| 已接受
已回答
how to determine the wavelengths of an fft of a non-dimensional sequence
Hi Andreas, For a fourier transform, time and frequency, or length and wave number, or [before-fourier-transform] independent v...
how to determine the wavelengths of an fft of a non-dimensional sequence
Hi Andreas, For a fourier transform, time and frequency, or length and wave number, or [before-fourier-transform] independent v...
8 months 前 | 1
已回答
Can I get the integral formula using Matlab?
Hello Haya, The integral is very much defined for m=n. In that case you are integrating the function sin(n*x/2)^2*(x-pi)^2 w...
Can I get the integral formula using Matlab?
Hello Haya, The integral is very much defined for m=n. In that case you are integrating the function sin(n*x/2)^2*(x-pi)^2 w...
8 months 前 | 0
已回答
Is there any expert who knows how the SNR result in the RF Budget Analyzer is calculated? Why is it inconsistent with the value I calculated?
Hi ZW, It's good to work out things independently as you are doing. The available power is 0 dBm, i.e. 1 milliwatt = -30 dB wa...
Is there any expert who knows how the SNR result in the RF Budget Analyzer is calculated? Why is it inconsistent with the value I calculated?
Hi ZW, It's good to work out things independently as you are doing. The available power is 0 dBm, i.e. 1 milliwatt = -30 dB wa...
8 months 前 | 1
| 已接受
已回答
Peak in probability distribution moves in normpdf when changing lower bound for input vector
Hi Chris, try x = 10e3:70e3; plot(x,normpdf(x,40e3,6e3)) The problem occurs because if you create y = f(x) and use plot(y), t...
Peak in probability distribution moves in normpdf when changing lower bound for input vector
Hi Chris, try x = 10e3:70e3; plot(x,normpdf(x,40e3,6e3)) The problem occurs because if you create y = f(x) and use plot(y), t...
8 months 前 | 2
| 已接受
已回答
Regarding grid generation using finite difference method (*code fixed)
Hello arxiv, It appears that what you want in the code is not new_x = x(n, m) + Delta_eta * ((pi/4) - y_xi)/(x_xi); but rath...
Regarding grid generation using finite difference method (*code fixed)
Hello arxiv, It appears that what you want in the code is not new_x = x(n, m) + Delta_eta * ((pi/4) - y_xi)/(x_xi); but rath...
9 months 前 | 1
| 已接受
已回答
solve Lagrange eqs.
Hi Lorenzo, The sin(phi) factor in the denominator does not really matter, in the sense that if phi can be zero, then the parti...
solve Lagrange eqs.
Hi Lorenzo, The sin(phi) factor in the denominator does not really matter, in the sense that if phi can be zero, then the parti...
9 months 前 | 0
已回答
How to remove a mirror tilt
Suppose the two mirrors, the source and the detector are as shown below. Assume the beam splitter does not have a wedge effect...
How to remove a mirror tilt
Suppose the two mirrors, the source and the detector are as shown below. Assume the beam splitter does not have a wedge effect...
9 months 前 | 1
已回答
Remove ignored complex values from a plot
Hi Arne, Either you are getting complex numbers because of an error in the algebra that you coded up (I assume you have checked...
Remove ignored complex values from a plot
Hi Arne, Either you are getting complex numbers because of an error in the algebra that you coded up (I assume you have checked...
9 months 前 | 0






