Answered

Why the calculated phase differs so much from the real phase of the signal?

@Janko, The DFT expresses a signal x(k) as a sum of sinusoids, each of which is sampled at regular intervals. The phase angles...

Why the calculated phase differs so much from the real phase of the signal?

@Janko, The DFT expresses a signal x(k) as a sum of sinusoids, each of which is sampled at regular intervals. The phase angles...

2 månader ago | 2

| accepted

Answered

Create a node in the space between two nodes (A and B) and following the direction normal to a node (N)

@Alberto Acri D=(A+B)/2; % the location E=cross((A-B),(N-D)); % the direction good luck

Create a node in the space between two nodes (A and B) and following the direction normal to a node (N)

@Alberto Acri D=(A+B)/2; % the location E=cross((A-B),(N-D)); % the direction good luck

2 månader ago | 0

Answered

How to solve this function?

@Ramesh, I am not sure what you mean by "how do you solve this function". You have posted a function. par=struct('A',1,'E',2,...

How to solve this function?

@Ramesh, I am not sure what you mean by "how do you solve this function". You have posted a function. par=struct('A',1,'E',2,...

2 månader ago | 0

Answered

Solving 2d heat problem using meshgrid

@Ali, [edit: fix spelling erors] A 10x10 mesh for this problem is so few points that it makes it hard to set up the problem an...

Solving 2d heat problem using meshgrid

@Ali, [edit: fix spelling erors] A 10x10 mesh for this problem is so few points that it makes it hard to set up the problem an...

2 månader ago | 0

| accepted

Answered

How to reduce \t commands

@TheSaint, Hard to say, since we don't know what F and SC and E are. You use the word table. Have you used Matlab's T=table...

How to reduce \t commands

@TheSaint, Hard to say, since we don't know what F and SC and E are. You use the word table. Have you used Matlab's T=table...

2 månader ago | 0

Answered

Advice on formulating a minimization function

@Collin Pecora, If you want to use multiple sources of data, with different levels of measurement error, to estimate parameters...

Advice on formulating a minimization function

@Collin Pecora, If you want to use multiple sources of data, with different levels of measurement error, to estimate parameters...

2 månader ago | 0

| accepted

Answered

looped 3D FFT of 4D data

@sbr, P2 is 64x64x64. P1 is 1x33. Your plot shows that one column along one corner-edge of the cube P2 is zero. But P2 is not...

looped 3D FFT of 4D data

@sbr, P2 is 64x64x64. P1 is 1x33. Your plot shows that one column along one corner-edge of the cube P2 is zero. But P2 is not...

2 månader ago | 0

Answered

Plot a Probability Density Function in 3D

@Victor Carneiro da Cunha Martorelli, For a one-dimensional random variable, you could do the Kolmogorov-Smirnov test, or the A...

Plot a Probability Density Function in 3D

@Victor Carneiro da Cunha Martorelli, For a one-dimensional random variable, you could do the Kolmogorov-Smirnov test, or the A...

2 månader ago | 0

Answered

Detect boundaries seperating data blocks in a time series signal

@Ashley, I am actually very impressed that findchangepts() did so well. I recommend adjusting the optional arguments of findch...

Detect boundaries seperating data blocks in a time series signal

@Ashley, I am actually very impressed that findchangepts() did so well. I recommend adjusting the optional arguments of findch...

2 månader ago | 0

Answered

How to get the value of X-axis at the -3dB

@Chris, There is no guarantee that H(f) will = -3 dB at one of the frequencies at which you evaluate H(f). Therefore, since it ...

How to get the value of X-axis at the -3dB

@Chris, There is no guarantee that H(f) will = -3 dB at one of the frequencies at which you evaluate H(f). Therefore, since it ...

2 månader ago | 1

| accepted

Answered

Special case of spectrogram not match FFT

@John, There are many ways to normalize a spectrum. Mathematicians like to have a factor 1/sqrt(n) in the forward and reverse ...

Special case of spectrogram not match FFT

@John, There are many ways to normalize a spectrum. Mathematicians like to have a factor 1/sqrt(n) in the forward and reverse ...

3 månader ago | 0

Answered

Fourier transform spatial domain-DSP

@Nimasha Pilippange, Matlab's fft() will work fine on spatial data. The only difference is in the interpretation of the transf...

Fourier transform spatial domain-DSP

@Nimasha Pilippange, Matlab's fft() will work fine on spatial data. The only difference is in the interpretation of the transf...

3 månader ago | 0

| accepted

Answered

two signal one is original signal i.e. pulses and other is receiving signal with a noise. finding the delay in signal by using the cross correlation.

@Mahesh, The error above occurs if you pass a non-integer scalar value for receiver_signal, because a scalar is interpreted as...

two signal one is original signal i.e. pulses and other is receiving signal with a noise. finding the delay in signal by using the cross correlation.

@Mahesh, The error above occurs if you pass a non-integer scalar value for receiver_signal, because a scalar is interpreted as...

3 månader ago | 0

Answered

How to find fitting optimized parameters to fit a system of non-linear ODEs to experiment.

@Buhari Ibrahim Matlab has excellent tools for this. https://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordina...

How to find fitting optimized parameters to fit a system of non-linear ODEs to experiment.

@Buhari Ibrahim Matlab has excellent tools for this. https://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordina...

3 månader ago | 2

Answered

How to delete or exclude an entire matrix if it contains all zeros

@Caitlin, you'll have to be more specific about how you are reading in the data in order to get a useful answer. X=zeros(10,10)...

How to delete or exclude an entire matrix if it contains all zeros

@Caitlin, you'll have to be more specific about how you are reading in the data in order to get a useful answer. X=zeros(10,10)...

3 månader ago | 0

| accepted

Answered

Huge inaccuracies in plotting diode IV characteristic in Matlab

@Nicholas, It is clear that your model does not fit your data. So there has been an error in the data collection, or the mdoe...

Huge inaccuracies in plotting diode IV characteristic in Matlab

@Nicholas, It is clear that your model does not fit your data. So there has been an error in the data collection, or the mdoe...

3 månader ago | 1

| accepted

Answered

Adjusting Parameters in Transcranial Doppler Audio Processing: Seeking Guidance on Gain, SWEEP, and Audio Playback

@Patrícia, For colors, you can specify a colormap that gives colors more like what you want. See here, and scroll down to see ...

Adjusting Parameters in Transcranial Doppler Audio Processing: Seeking Guidance on Gain, SWEEP, and Audio Playback

@Patrícia, For colors, you can specify a colormap that gives colors more like what you want. See here, and scroll down to see ...

3 månader ago | 0

| accepted

Answered

Inconsistency between Matlab eig() function and Matlab generated C code eig() function

@Hugoz, I am not sure how you generated the C code, but I suspect the C code is wrong. Matlab's eig() is extremely well tested...

Inconsistency between Matlab eig() function and Matlab generated C code eig() function

@Hugoz, I am not sure how you generated the C code, but I suspect the C code is wrong. Matlab's eig() is extremely well tested...

3 månader ago | 0

Answered

Fitting an ellipse based 3D PointCloud on 3D space

@Tingting, The data file you provided is a triangulation object. To fit an ellipse to the data, extract the vertices. load('3...

Fitting an ellipse based 3D PointCloud on 3D space

@Tingting, The data file you provided is a triangulation object. To fit an ellipse to the data, extract the vertices. load('3...

3 månader ago | 0

Answered

Inconsistent solutions for numerical integration of non-linear differential equations?

@Marco, [Edit: Change "higher level solvers are able to achieve..." to "higher order solvers may achieve...", because the highe...

Inconsistent solutions for numerical integration of non-linear differential equations?

@Marco, [Edit: Change "higher level solvers are able to achieve..." to "higher order solvers may achieve...", because the highe...

3 månader ago | 0

Answered

How to use MATLAB to simulate and obtain farmland plots?

@marvellous, Yes you can. You'll need to specify something about the shape, for example, the number of vertices. I'm sure ...

How to use MATLAB to simulate and obtain farmland plots?

@marvellous, Yes you can. You'll need to specify something about the shape, for example, the number of vertices. I'm sure ...

3 månader ago | 1

| accepted

Answered

Amplitude decrease after FIRRateConverter

@Yuhan Chiang, [edit: fix spelling errors] Please post the data file and code you used to make the initial figure. You said y...

Amplitude decrease after FIRRateConverter

@Yuhan Chiang, [edit: fix spelling errors] Please post the data file and code you used to make the initial figure. You said y...

3 månader ago | 0

Answered

Creating cartesian volumetric dataset from polar coordinates

@Eun, This is quite do-able. I know there are people on this site who are very much able to assist you. I have experience usi...

Creating cartesian volumetric dataset from polar coordinates

@Eun, This is quite do-able. I know there are people on this site who are very much able to assist you. I have experience usi...

3 månader ago | 0

Answered

Solve a system of coupled differential equations with ODE23s

@Thomas Stone-Wigg, Does your code run? Do you want help making it run at all, or help making it run better? If better, bette...

Solve a system of coupled differential equations with ODE23s

@Thomas Stone-Wigg, Does your code run? Do you want help making it run at all, or help making it run better? If better, bette...

3 månader ago | 0

| accepted

Answered

How to locate the bifurcation point of the flow

@Charles Taylor Taylor, You provided a quiver plot. Since you have a quiover plot, you obviously have the arrays X,Y,U,V. You...

How to locate the bifurcation point of the flow

@Charles Taylor Taylor, You provided a quiver plot. Since you have a quiover plot, you obviously have the arrays X,Y,U,V. You...

3 månader ago | 0

Answered

heatmap help - how to display grouped data across 3 levels (LO, MED, HI) ?

@Douglas Leaffer, Make a single variable Vstat with three categories: LOW, MED, HIGH, rather than three separate variables. ...

heatmap help - how to display grouped data across 3 levels (LO, MED, HI) ?

@Douglas Leaffer, Make a single variable Vstat with three categories: LOW, MED, HIGH, rather than three separate variables. ...

3 månader ago | 0

Answered

Difference between theoretical power spectral density and pwelch/periodogram ARMA models

@Simona Turco, When estimating the transfer function with pwelch(), remember to compute the denominator. Estimate the PSD of...

Difference between theoretical power spectral density and pwelch/periodogram ARMA models

@Simona Turco, When estimating the transfer function with pwelch(), remember to compute the denominator. Estimate the PSD of...

3 månader ago | 1

| accepted

Answered

autocorrelation of a signal after transforming the x-axis

@Sayanta Goswami, There is not an option with xcorr() to apply a different time scale. The discrete cross- and auto-correlatio...

autocorrelation of a signal after transforming the x-axis

@Sayanta Goswami, There is not an option with xcorr() to apply a different time scale. The discrete cross- and auto-correlatio...

3 månader ago | 0

Answered

data fitting with multiple independent variables

@Daniele Sonaglioni, [edit: correct spelling error] Your model includes two global parameters (p1, p2) and three parameters th...

data fitting with multiple independent variables

@Daniele Sonaglioni, [edit: correct spelling error] Your model includes two global parameters (p1, p2) and three parameters th...

3 månader ago | 0

Answered

getting a clear signal with eog

@Ali Eren Çinar, That is a really nice answer and follow-up from @Star Strider. For example, the lines hor = sum([-(EOGf{:,1}...

getting a clear signal with eog

@Ali Eren Çinar, That is a really nice answer and follow-up from @Star Strider. For example, the lines hor = sum([-(EOGf{:,1}...

3 månader ago | 0