Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
¿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...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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, ...

plus de 5 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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); ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 5 ans il y a | 0

Réponse apportée
Intersection line and quadrilateral
Hi Francesco Here is one way. The function linecross determines whether two line segments intersect. The function yesno just ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Regularized hypergeometric function 1F2 within matlab?
Hi Wozciech, if you add a prod function, part3 = prod(gamma([(1-n/2),(3/2 - n/2)])) then you're good to go. Or, you could us...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Matrix multiplied by inverse is not giving correct answer
Matlab is telling you the answer, that the matrix (call it M) is close to singular or badly scaled (singular in this case). M h...

plus de 5 ans il y a | 1

Charger plus