Answered

Time + Acceleration Fourier transform into Amplitude + Frequency

The ‘Time’ values are not unique (they likely need an additional digit of precision) so they had to be processed by taking the m...

Time + Acceleration Fourier transform into Amplitude + Frequency

The ‘Time’ values are not unique (they likely need an additional digit of precision) so they had to be processed by taking the m...

5 days ago | 0

| accepted

Answered

create a function from temperature data

Another option: Curve fitting to a sinusoidal function

create a function from temperature data

Another option: Curve fitting to a sinusoidal function

5 days ago | 0

Answered

Find the position of numbers in array

I am not certain what you are asking. Perhaps using the ismember (or ismembertol) function will do what you want.

Find the position of numbers in array

I am not certain what you are asking. Perhaps using the ismember (or ismembertol) function will do what you want.

5 days ago | 0

Answered

How to remove the AWGN noise from data?

I would simply use a moving average filter, for example movmean, or choose one of the options in smoothdata, to eliminate normal...

How to remove the AWGN noise from data?

I would simply use a moving average filter, for example movmean, or choose one of the options in smoothdata, to eliminate normal...

6 days ago | 0

Answered

Numeric array to serial datetime

Perhaps something like this — Feed{:,1} = datetime('29-Sep-2022'); Feed{:,2} = '14.45'; DT = Feed{:,1} + timeofday(datetime(...

Numeric array to serial datetime

Perhaps something like this — Feed{:,1} = datetime('29-Sep-2022'); Feed{:,2} = '14.45'; DT = Feed{:,1} + timeofday(datetime(...

6 days ago | 0

Answered

Legend colours are different from the plot

Thank you for the ‘r’ anonymous function! I can now run your code. The code was plotting the contours as well as the vector...

Legend colours are different from the plot

Thank you for the ‘r’ anonymous function! I can now run your code. The code was plotting the contours as well as the vector...

6 days ago | 0

| accepted

Answered

Find the polar representation of (𝑖 − √3 )

Perhaps: phi = angle(1i - sqrt(3)) % Radian Angle Of Complex Number mag = abs(1i - sqrt(3)) ...

Find the polar representation of (𝑖 − √3 )

Perhaps: phi = angle(1i - sqrt(3)) % Radian Angle Of Complex Number mag = abs(1i - sqrt(3)) ...

6 days ago | 0

Answered

How to interpolate a set of data with the cubic method?

Since you apparently want to find the independent (‘x’) variable where the dependent (‘y’) variable is 600, it will be necessary...

How to interpolate a set of data with the cubic method?

Since you apparently want to find the independent (‘x’) variable where the dependent (‘y’) variable is 600, it will be necessary...

6 days ago | 0

Answered

How to implement either a High/Low Pass filter on accelerometer data.

‘For my accelerometer, I set the output data rate to 50hz so the bandwidth would be 25hz and sampled at 10hz (10 times /sec) to ...

How to implement either a High/Low Pass filter on accelerometer data.

‘For my accelerometer, I set the output data rate to 50hz so the bandwidth would be 25hz and sampled at 10hz (10 times /sec) to ...

7 days ago | 0

Answered

I have an equation that relies on previous values to get the next.

I am not certain how the ‘P’ vector enters into this. If: P1 = P(1) = 1 P2 = P(2) = 2 P3 = P(3) = 3 in this instance, then...

I have an equation that relies on previous values to get the next.

I am not certain how the ‘P’ vector enters into this. If: P1 = P(1) = 1 P2 = P(2) = 2 P3 = P(3) = 3 in this instance, then...

7 days ago | 0

Answered

Please Help me, How to raise the quality of the attached figure after drawing it on Matlab

What do you want to do with it? F = open(websave('T','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1138680/...

Please Help me, How to raise the quality of the attached figure after drawing it on Matlab

What do you want to do with it? F = open(websave('T','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1138680/...

7 days ago | 0

Answered

How to solve 2nd ODE equation in numerical and analytical method at same plot graph?

See my Answer in How to solve 2nd ODE equation in numerical and analytical method at same plot graph? and make the appropriate c...

How to solve 2nd ODE equation in numerical and analytical method at same plot graph?

See my Answer in How to solve 2nd ODE equation in numerical and analytical method at same plot graph? and make the appropriate c...

7 days ago | 0

Answered

How to solve 2nd ODE equation in numerical and analytical method at same plot graph?

Interesting problem! I was curious enough to do the entire simulation to see what the results are — syms x(t) x0 Dx0 T Y ...

How to solve 2nd ODE equation in numerical and analytical method at same plot graph?

Interesting problem! I was curious enough to do the entire simulation to see what the results are — syms x(t) x0 Dx0 T Y ...

7 days ago | 0

| accepted

Answered

fft of a signal

You need to normalise the fft result by the length of the signal: X_fft = fft(y1,nfft)/L; Otherwise, using my test signal, it...

fft of a signal

You need to normalise the fft result by the length of the signal: X_fft = fft(y1,nfft)/L; Otherwise, using my test signal, it...

8 days ago | 0

| accepted

Answered

Smoothing data with sgolay filter

The default order for the 'sgolay' option is 2 (quadratic), however the 'SmoothingFactor' controls the window length (framelen ...

Smoothing data with sgolay filter

The default order for the 'sgolay' option is 2 (quadratic), however the 'SmoothingFactor' controls the window length (framelen ...

8 days ago | 0

Answered

How can I draw the transfer function spectra by matlab?

The ‘spectrum’ is the Bode plot: z = tf('z'); H = 5 / (1 + 2*cos(5)*z^-1 + z^-2); H.Variable = 'z^-1' figure bodeplot(H)...

How can I draw the transfer function spectra by matlab?

The ‘spectrum’ is the Bode plot: z = tf('z'); H = 5 / (1 + 2*cos(5)*z^-1 + z^-2); H.Variable = 'z^-1' figure bodeplot(H)...

9 days ago | 0

Answered

Find the relaxation Time from data set

See my latest Comment in find fitting equation and parameters to fit damped oscillations curves from set of data.

Find the relaxation Time from data set

See my latest Comment in find fitting equation and parameters to fit damped oscillations curves from set of data.

9 days ago | 0

| accepted

Answered

sums up the same rounded numbers in 5-digit decimal arithmetic in n = 10, 9, 8, ..., 3, 2, 1

See the documentation for colon, : and go from there.

sums up the same rounded numbers in 5-digit decimal arithmetic in n = 10, 9, 8, ..., 3, 2, 1

See the documentation for colon, : and go from there.

10 days ago | 0

Answered

how to avoid getting 0 overlap on the pie chart?

The code was not returning the correct position vectors. I am not certain what you want to do. This repositions the ‘5%’ t...

how to avoid getting 0 overlap on the pie chart?

The code was not returning the correct position vectors. I am not certain what you want to do. This repositions the ‘5%’ t...

10 days ago | 0

Answered

contour() function plots with a solid background (and not a transparent background, which is desired)

Perhaps something like this — [X,Y,Z] = peaks(50); figure surf(X,Y,Z, 'EdgeColor','none') hold on contour3(X, Y, Z, 'Col...

contour() function plots with a solid background (and not a transparent background, which is desired)

Perhaps something like this — [X,Y,Z] = peaks(50); figure surf(X,Y,Z, 'EdgeColor','none') hold on contour3(X, Y, Z, 'Col...

10 days ago | 0

| accepted

Answered

How to plot bode?

We need to know more. If you have the Control System Toolbox (or the System Identification Toolbox, or both) licensed and ins...

How to plot bode?

We need to know more. If you have the Control System Toolbox (or the System Identification Toolbox, or both) licensed and ins...

10 days ago | 0

| accepted

Answered

The upsample function is not working R2022b

I can find two upsample functions in the online documentation, one in the Signal Processing Toolbox (that should work with your ...

The upsample function is not working R2022b

I can find two upsample functions in the online documentation, one in the Signal Processing Toolbox (that should work with your ...

10 days ago | 0

| accepted

Answered

Putting measurement unit and origin in plot

I am not exactly certain what you want, however the xlim and text functions would likely be appropriate.

Putting measurement unit and origin in plot

I am not exactly certain what you want, however the xlim and text functions would likely be appropriate.

10 days ago | 0

| accepted

Answered

Can anyone please tell me how to plot this graph?

Use the polarplot function. It should do evertything you want. For details see PolarAxes Properties and perhaps also Line Pr...

Can anyone please tell me how to plot this graph?

Use the polarplot function. It should do evertything you want. For details see PolarAxes Properties and perhaps also Line Pr...

10 days ago | 1

| accepted

Answered

bode magnitude producing different plots for the same transfer function

The upper plot is plotted with a linear magnitude and the lower one is plotted with the magnitude in decibels.

bode magnitude producing different plots for the same transfer function

The upper plot is plotted with a linear magnitude and the lower one is plotted with the magnitude in decibels.

10 days ago | 0

| accepted

Answered

Extract data points from bodemag plot

it would likely be easier to use the approach bode in Obtain Magnitude and Phase Data. (Remember to use the squeeze function wi...

Extract data points from bodemag plot

it would likely be easier to use the approach bode in Obtain Magnitude and Phase Data. (Remember to use the squeeze function wi...

10 days ago | 0

| accepted

Answered

Add axes x and y labels (or title) to a scatter plot, not using tbl notation

Delete the equal sign in the xlabel, ylabel, and title calls — A_full = rand(1,570); B_30_channels = rand(1,570); figure ...

Add axes x and y labels (or title) to a scatter plot, not using tbl notation

Delete the equal sign in the xlabel, ylabel, and title calls — A_full = rand(1,570); B_30_channels = rand(1,570); figure ...

11 days ago | 1

| accepted

Answered

Fix the random values

The rng function controls the seed. Example — rng(1) r1 = randi(9,1,10) rng(1) r2 = randi(9,1,10) There are a numbe...

Fix the random values

The rng function controls the seed. Example — rng(1) r1 = randi(9,1,10) rng(1) r2 = randi(9,1,10) There are a numbe...

11 days ago | 0

| accepted

Answered

How can I get a bode magnitude to be a certain size vector?

The bode function allows you to specify a vector of frequencies in radians/time_unit.. See the documentation section on Bode Pl...

How can I get a bode magnitude to be a certain size vector?

The bode function allows you to specify a vector of frequencies in radians/time_unit.. See the documentation section on Bode Pl...

11 days ago | 0

| accepted

Answered

How can I compute envelope for three phase current?

I am not certain what you want. Perhaps this — Fs = 0.0001; t = linspace(0, 1, 1/Fs)/Fs; s = sin(2*pi*t*60 + deg2rad([0; ...

How can I compute envelope for three phase current?

I am not certain what you want. Perhaps this — Fs = 0.0001; t = linspace(0, 1, 1/Fs)/Fs; s = sin(2*pi*t*60 + deg2rad([0; ...

11 days ago | 0

| accepted