Answered

How to code an instantaneous reaction in Matlab

@Robert Demyanovich, Here is a simulation. Figure 1 shows the concentration profiles at specific time points. The simulation s...

How to code an instantaneous reaction in Matlab

@Robert Demyanovich, Here is a simulation. Figure 1 shows the concentration profiles at specific time points. The simulation s...

10 jours ago | 0

| accepted

Answered

Unknown angles as functions of time

@Dario Saracchi, You can do some algebra before you do some code. Define some constants: d=AB*cos(alfa)-AC*cos(delta) e=AB*si...

Unknown angles as functions of time

@Dario Saracchi, You can do some algebra before you do some code. Define some constants: d=AB*cos(alfa)-AC*cos(delta) e=AB*si...

11 jours ago | 0

| accepted

Answered

How to code an instantaneous reaction in Matlab

@Robert Demyanovich, Do you expect to end up with a partial differential equation, as expected for diffusion? Of course the 1...

How to code an instantaneous reaction in Matlab

@Robert Demyanovich, Do you expect to end up with a partial differential equation, as expected for diffusion? Of course the 1...

11 jours ago | 2

Answered

Problem/question with regression

You need at least one more data point to do a standard regression, so that you have more equations than unknowns. Even with mor...

Problem/question with regression

You need at least one more data point to do a standard regression, so that you have more equations than unknowns. Even with mor...

12 jours ago | 1

| accepted

Answered

Frequency sweeping in a sinusoidal signal

@Nneka Onubogu, You can initialize the vectors p, x, and y before the loop as follows: dt=4e-6; %(s) fs=1/dt; %(...

Frequency sweeping in a sinusoidal signal

@Nneka Onubogu, You can initialize the vectors p, x, and y before the loop as follows: dt=4e-6; %(s) fs=1/dt; %(...

13 jours ago | 0

| accepted

Answered

line calculations using its known coordinates

Suppose slope of line 1 is a1 and slope of line 2 is a2. Then angle of line 1 relative to x axis is theta1=arctan(a1) and angle ...

line calculations using its known coordinates

Suppose slope of line 1 is a1 and slope of line 2 is a2. Then angle of line 1 relative to x axis is theta1=arctan(a1) and angle ...

14 jours ago | 0

Answered

Removing baseline drift from EOG signal

@Mahsa Rm, The initial posting of your question did not include the data file or the figure - at least I did not see them. That ...

Removing baseline drift from EOG signal

@Mahsa Rm, The initial posting of your question did not include the data file or the figure - at least I did not see them. That ...

14 jours ago | 0

Answered

Removing baseline drift from EOG signal

@Mahsa Rm, A high pass filter is usually the solution. You need to specify the cutoff frequency. Oscillaitons below the cutoff...

Removing baseline drift from EOG signal

@Mahsa Rm, A high pass filter is usually the solution. You need to specify the cutoff frequency. Oscillaitons below the cutoff...

14 jours ago | 0

Answered

Frequency sweeping in a sinusoidal signal

@Nneka Onubogu, Thak you for reformatting the code part of your original post. The original post asks how do I do a chirp from...

Frequency sweeping in a sinusoidal signal

@Nneka Onubogu, Thak you for reformatting the code part of your original post. The original post asks how do I do a chirp from...

15 jours ago | 0

Answered

Frequency sweeping in a sinusoidal signal

@Nneka Onubogu, If you highlight your code in your posting, and then click the "code" icon at the top of the pane, it will form...

Frequency sweeping in a sinusoidal signal

@Nneka Onubogu, If you highlight your code in your posting, and then click the "code" icon at the top of the pane, it will form...

16 jours ago | 0

Answered

Estimation of NegEntropy in MATLAB

@Marimuthu Ananthavelu and @Smriti Thakur, Here is code to estimate the entropy and negentropy of time domain signal, y. In thi...

Estimation of NegEntropy in MATLAB

@Marimuthu Ananthavelu and @Smriti Thakur, Here is code to estimate the entropy and negentropy of time domain signal, y. In thi...

16 jours ago | 0

Answered

How to do estimate Non-gaussianity using Negentropy?

@Maria Amr, I figured it out. Here is an example of a signal y, and how to calculate its entropy (Hent) and its negentropy (J)...

How to do estimate Non-gaussianity using Negentropy?

@Maria Amr, I figured it out. Here is an example of a signal y, and how to calculate its entropy (Hent) and its negentropy (J)...

16 jours ago | 1

Answered

Estimation of NegEntropy in MATLAB

@Marimuthu Ananthavelu and @Smriti Thakur, pentropy(), in the SIgnal Processing Toolbox, computes the entropy of a signal's pow...

Estimation of NegEntropy in MATLAB

@Marimuthu Ananthavelu and @Smriti Thakur, pentropy(), in the SIgnal Processing Toolbox, computes the entropy of a signal's pow...

16 jours ago | 0

Answered

How to do estimate Non-gaussianity using Negentropy?

@Maria Amr, You will find several questions and answers about negentropy if you search Matlab Answers for negentropy. Negentro...

How to do estimate Non-gaussianity using Negentropy?

@Maria Amr, You will find several questions and answers about negentropy if you search Matlab Answers for negentropy. Negentro...

16 jours ago | 1

| accepted

Answered

Want to take a section of a curved line between 2 points

@katherine keogh, interp1(x,y,xq,method) will interpolate in a smooth way. See the help for it here. You tell it the known x'...

Want to take a section of a curved line between 2 points

@katherine keogh, interp1(x,y,xq,method) will interpolate in a smooth way. See the help for it here. You tell it the known x'...

16 jours ago | 0

Answered

2D mass spring damper square lattice

@Muhammad Ali, The system in the image you attached is obviously a lot more complicated. Masses m1 and m3 have 6 attached eleme...

2D mass spring damper square lattice

@Muhammad Ali, The system in the image you attached is obviously a lot more complicated. Masses m1 and m3 have 6 attached eleme...

17 jours ago | 1

| accepted

Answered

Plotting Sinusoidal Wave Graph on MatLab

@cikalekli, Start by figuring out a good time range. Since you have cos(1256t-pi/4), the period is , so let's plot for two peri...

Plotting Sinusoidal Wave Graph on MatLab

@cikalekli, Start by figuring out a good time range. Since you have cos(1256t-pi/4), the period is , so let's plot for two peri...

18 jours ago | 1

| accepted

Answered

Upsampling by a non-integer number

@Malahat Mehraban, If you search "resample" on this site, you will see the question has been answered multiple times. For exam...

Upsampling by a non-integer number

@Malahat Mehraban, If you search "resample" on this site, you will see the question has been answered multiple times. For exam...

18 jours ago | 1

Answered

How to find closest point in plane to another point? Matlab solution

@Sue Swenson, A plane can be described by This plane has normal vector . Suppose is a given external point. Find the poi...

How to find closest point in plane to another point? Matlab solution

@Sue Swenson, A plane can be described by This plane has normal vector . Suppose is a given external point. Find the poi...

19 jours ago | 1

Answered

Plomb function improvements with taper

@J E, I recommend this paper https://iopscience.iop.org/article/10.3847/1538-4365/aab766/pdf especially sections 7 and 8. The...

Plomb function improvements with taper

@J E, I recommend this paper https://iopscience.iop.org/article/10.3847/1538-4365/aab766/pdf especially sections 7 and 8. The...

19 jours ago | 0

Answered

2D mass spring damper square lattice

@Muhammad Ali, The equation of motion for a M-S-D system may be written as where is a position vector, is frictional drag,...

2D mass spring damper square lattice

@Muhammad Ali, The equation of motion for a M-S-D system may be written as where is a position vector, is frictional drag,...

19 jours ago | 0

Answered

Multiplying from a loop

@Michael Akiva, Here is code that adjusts r at the frequencies near each pole pair, until -0.9<=H(w)<=-1.0. Since there are th...

Multiplying from a loop

@Michael Akiva, Here is code that adjusts r at the frequencies near each pole pair, until -0.9<=H(w)<=-1.0. Since there are th...

21 jours ago | 0

Answered

Multiplying from a loop

@Michael Akiva, Get rid of the loop for n=[1:3] ... end but keep the code inside the loop, and define all 6 zeros a...

Multiplying from a loop

@Michael Akiva, Get rid of the loop for n=[1:3] ... end but keep the code inside the loop, and define all 6 zeros a...

22 jours ago | 0

| accepted

Answered

How can I measure the area covered by a Bar Chart Plot?

@Tawsif Mostafiz, If you make a histogram using Matlab's histogram command, for example as follows, data=randn(1,1000); h=his...

How can I measure the area covered by a Bar Chart Plot?

@Tawsif Mostafiz, If you make a histogram using Matlab's histogram command, for example as follows, data=randn(1,1000); h=his...

22 jours ago | 0

Answered

Can you help me how to move forward

@kraken, Now for the answers to your specific quesitons: gdel=grpdelay(dee); returns the group delay at 512 points from frequ...

Can you help me how to move forward

@kraken, Now for the answers to your specific quesitons: gdel=grpdelay(dee); returns the group delay at 512 points from frequ...

22 jours ago | 0

Answered

Can you help me how to move forward

@kraken, next part of my answer: Your plot 1 uses ylabel('x'); xlabel('t'); but the correct labels should be ylabel('|X(...

Can you help me how to move forward

@kraken, next part of my answer: Your plot 1 uses ylabel('x'); xlabel('t'); but the correct labels should be ylabel('|X(...

22 jours ago | 0

Answered

Can you help me how to move forward

@krakenThe code you provided runs - good. Are you aware that, because of how you constructed t, the sampling rate in t does not...

Can you help me how to move forward

@krakenThe code you provided runs - good. Are you aware that, because of how you constructed t, the sampling rate in t does not...

22 jours ago | 0

Answered

Filter function in MATLAB

@Mohammad Zulqarnain, @Jan is right, as usual. I really like filtfilt() because it has zero phase lag at all frequencies. fil...

Filter function in MATLAB

@Mohammad Zulqarnain, @Jan is right, as usual. I really like filtfilt() because it has zero phase lag at all frequencies. fil...

environ un mois ago | 1

Answered

Help with my SIR MODEL

@Darren Tharby I think you did intend to call sirs_model(), from the File Exchange, since the seven variables which you pass ar...

Help with my SIR MODEL

@Darren Tharby I think you did intend to call sirs_model(), from the File Exchange, since the seven variables which you pass ar...

environ un mois ago | 0

Answered

Help with my SIR MODEL

@Darren Tharby, You get an error at lline 13 because line 13 (which is in function sir_model()) calls itself. That is not OK. ...

Help with my SIR MODEL

@Darren Tharby, You get an error at lline 13 because line 13 (which is in function sir_model()) calls itself. That is not OK. ...

environ un mois ago | 0