Beantwortet
How to plot wavelength and wavenumber FFT from intensity data
Hi Arwi, n = 3648, dpix = 8e-9; % 8nm seems small for a pixel width The x array has spacing delx = dpix and is x = delx*(0:...

fast 6 Jahre vor | 0

Beantwortet
Verifying the uncertainty principle with fft for Gaussian
Hello Ori, The problem stems from the following, where I am using t and f rather than x and k (see comment). For an fft, once ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
why the Real and imaginary part of fourier transform (fft) are not zero for real odd function
Hi Jiali, with an even number of points the symmetry is not quite right. In the frequency domain, for eight points (without an...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to solve Ax=B with some knowns in x and B
Hi Derek, the method below uses y instead of B so that A*x = y, and does not assume that the known values of x are contiguous t...

fast 6 Jahre vor | 1

Beantwortet
Convert permute and reshape to for
Hi Raquel, For loops are going to be slower, but it is interesting to seet how much and under what circumstances. The followin...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
X axis for convoluted function
Hi dinesh, Here is an example with two normal (gaussian) pdfs. Arrays x and f(x) describe one of them, and arrays y and g(y) d...

fast 6 Jahre vor | 1

Beantwortet
¿Why the phase of the Fourier transform whith "angle" fuction of a rectangular pulse function is not odd?
Hi Paulina, neglecting some unimportant (in this context) real constants, the fourier transform of the square pulse is sin(w*t...

fast 6 Jahre vor | 0

Beantwortet
RF toolkit capacitance calculation
Hi Derek, The exact expression is indeed the acosh expression used in Matlab, and we would expect no less. The log expression ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to shuffle data at the same way EVERYTIME random.seed(42)
Hi RG rng(12345) % for example rand rand rng(12345) rand % same values as before rand see help rand for mor...

fast 6 Jahre vor | 0

Beantwortet
Inaccuracy in a loglog(...) plot, compared to a standard plot(...)
HI Adam, I am assuming that you are doing something like x = [1 2] y = [2,3] plot(x,y) and then zooming in on the plot at, ...

fast 6 Jahre vor | 3

| akzeptiert

Beantwortet
I'm not getting antenna pattern roll off that I expect, not sure if I'm wrong or where there is 20, there should be 10?
Hi mike, since intensity goes as the square of the E field, the expression to use is 10*log10((cosd(70)^1.4)^2) ans = -1...

fast 6 Jahre vor | 1

Beantwortet
Surf(x, y, z) with a colormap that is only two colours
Hi Emil, x = linspace(-20,20,2400); fz = exp(-x.^2./0.2).*cos(5*x); [X, Y] = meshgrid(x, x); z = exp(-X.^2-Y.^2); f = z.*me...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Fourier series of any function
Hello Danny, the problem is that you are supposed to approximate the function with a sum of sines and cosines with certain ampl...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Order of integration in double integral
Hi A.K. If you are convinced that the problem arises from the square root singularity, one approach is a change of variable y ...

fast 6 Jahre vor | 0

Beantwortet
How to integrate products of hypergeometric functions and rational functions?
Hello Nicolas, I don't know how you are implementing the nth derivative of 1/(lambda^2 + q^2) but it is obviously very time con...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Simplifying a complex function in order to separate real and imaginary part?
Hi zah ra, An explicit form for real and imaginary parts of (1 - r*exp(theta*1i))^(3/2) is possible, although not particularl...

fast 6 Jahre vor | 0

Beantwortet
Steady-states and non-trivial eigenvalues of equation
Hi katara, the fixed points are at 0,theta,K as you said. Although you don't have specific values, the derivatives, which you ...

fast 6 Jahre vor | 0

Beantwortet
Cannot use besselh as function handle
Hi wbriand, any reason you can't just define F = @(nu,z) besselh(nu,1,z) or F = @(nu,z) besselh(nu,2,z) whichever one you w...

fast 6 Jahre vor | 0

Beantwortet
Scaling an array by a certain number so that the area under the curve equals a fixed number
HI Christina, A = trapz(x,pyy) % find the unscaled area pyy_new = pyy*(30/A); trapz(x,pyy_new) % this ...

fast 6 Jahre vor | 0

Beantwortet
ilaplace() function is giving wrong results
Hi David, plugging in cosh(z) = ((exp(z) + exp(-z))/2 sinh(z) = ((exp(z) - exp(-z))/2 results in a constant and two exponent...

fast 6 Jahre vor | 0

Beantwortet
clamp cross-entropy loss
Hi Matt, z = log(Y); z(z<100) = 100; loss = -sum(W*(T.*z))/N; In the link you provided, they talk about a limit of -100 rath...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Vectorization time-varying recursive linear function
Hi Bruno, a = rand(1,50); b = rand(1,50); % method 1 xk = 0; x = zeros(1,50); for k = 1:50 xk = a(k)*xk + b(k); ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Laplace of heaviside function with negative arguments
Hi Darius, since the laplace transform is Integral{0,inf} f(t)*exp(-s*t) dt, the value of f(t) for t<0 makes no difference. ...

fast 6 Jahre vor | 0

Beantwortet
Intersection line and quadrilateral
Hi Francesco Here is one way. The function linecross determines whether two line segments intersect. The function yesno just ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to find out the intersection points between two 3D ellipsoids?
Hi PA, As has been alluded to, the intersection of these two surfaces results in lines. These are calculated below. The abc c...

etwa 6 Jahre vor | 0

Beantwortet
dot multiplication of the matrices is not the same when you feed the matrix and concatenate the matrix
Hi mohammed, For H1_2 you have switched a3 and a4 between the first calculation and the hand calculation. So you get two diffe...

etwa 6 Jahre vor | 0

Beantwortet
About FFT of cosine function
Hi mk, In order to get just the two sharp peaks you need to have exactly n oscillations in the time domain. Otherwise the wave...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
impulse response for difference equation
Hi Roger, try bb(N+1) = -power(a,N); which is what you actually have. I think you'll lilke the resulting plot.

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How can I solve this set of complex equations?
Hi Stefanos, As has already been mentioned, the 4th equation is just the definition of V0' and is independent of the first thre...

etwa 6 Jahre vor | 0

Beantwortet
Changing a parameter in a differential equation?
Hi Sean, you can pass the value of epsilon into the ode function with [tSol,YSol]=ode45(@(t,Y) quantumsystem(t,Y,epsilon),tRan...

etwa 6 Jahre vor | 0

| akzeptiert

Mehr laden