Beantwortet
z transfer function evaluates to inaccurate value near z=1
Hi Ashish, This function, ((1-1/z^2)/(1-1/z))^6 is identically equal to ((z+1)/z)^6 so you can just use that. And it does ...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why am I getting wrong spectrum applying FFT comparing with correct spectrum?
Hi Jiang, There are a couple of things going on here. The expression for FFT is not correct. Since you are taking the real pa...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Solve system of equations with some knowns and unknowns in the same matrix
Hi Yusuf, I'm later on an answer (and losing the race more often, to the extent that there is a race, which to be honest there ...

etwa 2 Jahre vor | 0

Beantwortet
How can I code a contour integral representation of cosine?
Hi Richard, this integral converges very slowly along the vertical path gamma-i*inf to gamma+i*inf. Convergence depends on wha...

etwa 2 Jahre vor | 1

Beantwortet
reverse lookup table from vector multiplikation with unknown vectors
Hello Henning, Assuming that you want column vectors a and b such that their outer product C = a*b' is as close as possible to ...

etwa 2 Jahre vor | 1

Beantwortet
How to define color on matrix figure
Hi Jan, the following method comes up with black not just for values that are exactly zero (I don't know how likely that might ...

etwa 2 Jahre vor | 0

Beantwortet
Question using IFFT, try to transform continuous 1 from frequency in time domain
Hi Jan, In the secnd example the dirac value should be quite large, In fact it should be 3e5, the number of points, not half o...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
fminsearch for a function f(x,y) = x^4 -3xy+2y^2
Hi Ibraheem, While it's useful to find out about how to get fminsearch to cooperate, that's hardly necessary here. For the min...

etwa 2 Jahre vor | 0

Beantwortet
Random numbers generation problem
Hi Daniel, here is one way, basically the sieve of Eratosthenes. nmax = 1000; a = randi(nmax,1,1e6); a(rem(a,2)== 0) = []; ...

etwa 2 Jahre vor | 0

Beantwortet
different result of PCA function and my PCA
Hi Farshad, Each column vector in the cof matrix is arbitrary up to an overall constant of absolute value 1, which for the case...

etwa 2 Jahre vor | 0

Beantwortet
My code is outputting very illogical answers for the second block (my second vector loop equation).
Hi Emily, No one seems to have mentioned that there are two independent solutions for the angle pair angle3 and angle4, since i...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
My code is outputting very illogical answers for the second block (my second vector loop equation).
Hi Emily, If VLE1 and VLE2 are lined up typographically, you have VLE1 = @(x0) [(R2.*cos(theta2_all(i)) + R3.*cos(x0(1)) -...

etwa 2 Jahre vor | 0

Beantwortet
xcorr and finddelay giving erroneous results for offset sine waves
Hi James, This effect is due to a peculiarity in finding delays when your sample is cut off sharply at each end. The following...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Would you tell me the code for Fisher Pearson skewness?
Hi Chris, y = rand(1,100); % some data m = mean(y); n = numel(y); scalc = (sum((y-m).^3)/n)/var(y,1)^(3/2) s = skewness...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Why doesn't the kurtosis function work properly for complex numbers?
Hi Guillem, Both the standard deviation and the variance (std and var) work correctly for complex argument, so kurtosis appears...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
SIR model with recovered individuals may lose their immunity and become reinfected with the disease. But came with a failure about integration tolerances
Hi Julian, I have doubts about the equations, because with dq(1) = -S as you have, the equations are equivalent to S = -beta*S...

etwa 2 Jahre vor | 0

Beantwortet
what does the positive and negative values concave mean?.
Hello Aisha, You are looking at a polynomial function of z, with two roots as you stated. To see what is going on, it helps to...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Differentiate with Respect to Derivative
Hello Mitra, what version of Matlab are you running? Running your code in 2021b gives D1 = m*diff(x(t), t) as desir...

etwa 2 Jahre vor | 1

Beantwortet
Huge difference between the result of fft function Matlab and analytical Fourier transform of the same function
Hi ST, Your frequency grid runs from -5 to 5, which for an fft is -fs/2 to fs/2 (fs being the sampling frequency), so fs = ...

etwa 2 Jahre vor | 0

Beantwortet
Plotting the theoretical maximum possible efficiency of a heat engine
Hi Aidan, It's possible to fix up the for loop, but easier and much more in the spirit of Matlab to do this with vectors. Tl1=...

etwa 2 Jahre vor | 0

Beantwortet
Compute wave energy converter power output using power matrix
Hi Ross, For the matrices SWH and T02, which I will call S and T, do they already meet the condition S contains integers from ...

etwa 2 Jahre vor | 0

Beantwortet
Finding PSD from Autocorrelation, FFT, Periodogram and Pwelch
Hello YK, Since you are using ffts, the appropriate correlation is going to be circular correlation. This can be done by using...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
is there any method to apply the for loop in this, I caN't see any pattern please help in this
Hi Sahil, This can be done by for loop but it is maybe better to do the whole thing with index manipulation. In the written-ou...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I show Electric Potential due to a Dipole as a 3D surface?
Hi Luca, Since you can't show the values of the potential at every point in the 3d space, this is most commonly done by showing...

etwa 2 Jahre vor | 0

Beantwortet
What is the equation used for taylor window function 'taylorwin'
Hi Palguna, The equations are in the attachment. rect(t) is a rectagle function, = 1 for -1/2<= t <= 1/2, 0 otherwise. That's...

mehr als 2 Jahre vor | 2

| akzeptiert

Beantwortet
Explanation for a function within xcorr
Hi big, rather than puzzle this out in place, it seemed easier to look at the output of the function for the first hundred valu...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Got wrong normal vector
Hi AC, You were quite right in your suspicions of the 3d plot, which looks fishy. You might call this a configuration control ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
fft vs nufft- scaling
Hi Nathan, In the fft case you are dividing by N = 1500 and multiplying by 2. For nufft you aren't doing that. Hence the fact...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why I got the dominant frequency as 1/time when I running fft?
Hi CS, here is an example, first with 800 points, then 400 points. The frequency scale is constructed differently in each one ...

mehr als 2 Jahre vor | 0

Beantwortet
finding the orthogonal vectors for a series of vectors
Hi Pouya, Here is another method, somewhat related to Bruno's a = 2*rand(1000,3)-1; m1 = tril(ones(3,3)) -triu(ones(3,3)) ...

mehr als 2 Jahre vor | 1

Mehr laden