Beantwortet

Ideal way to smoothe gyroscope data

The LPF approach is likely appropriate, and an IIR filter (elliptical is most efficient) is likely the best option. First, de...

Ideal way to smoothe gyroscope data

The LPF approach is likely appropriate, and an IIR filter (elliptical is most efficient) is likely the best option. First, de...

10 Tage vor | 0

| akzeptiert

Beantwortet

How to remove the value using Histogram

I have only a vague idea of what you want to do, especially since the .mat file does not appear to contain the same data as depi...

How to remove the value using Histogram

I have only a vague idea of what you want to do, especially since the .mat file does not appear to contain the same data as depi...

10 Tage vor | 0

Beantwortet

what is the correct way to write this expression in matlab?

If ‘R’, ‘L’, and ‘C’ are all arrays of the same size, use element-wise operations in every multiplication, division, and exponen...

what is the correct way to write this expression in matlab?

If ‘R’, ‘L’, and ‘C’ are all arrays of the same size, use element-wise operations in every multiplication, division, and exponen...

10 Tage vor | 1

Beantwortet

I'm really not good at this. "Array indices must be positive integers or logical values." What is wrong?

I suspect you want to define ‘u’ as a unit step function. This does that (and solves the ‘u’ error) however it gives a likely u...

I'm really not good at this. "Array indices must be positive integers or logical values." What is wrong?

I suspect you want to define ‘u’ as a unit step function. This does that (and solves the ‘u’ error) however it gives a likely u...

10 Tage vor | 0

| akzeptiert

Beantwortet

How do I add rows to a table in a for loop?

The vertcat function needs to know what ‘NewRow’ is to be concatenated to. Try something like this — T1 = array2table(magic...

How do I add rows to a table in a for loop?

The vertcat function needs to know what ‘NewRow’ is to be concatenated to. Try something like this — T1 = array2table(magic...

11 Tage vor | 0

Beantwortet

time domain specifications calculations from graph

I am not certain what you want to do. Try something like this — sys = tf(4,[1 2 10]); si = stepinfo(sys); RT = si.RiseT...

time domain specifications calculations from graph

I am not certain what you want to do. Try something like this — sys = tf(4,[1 2 10]); si = stepinfo(sys); RT = si.RiseT...

11 Tage vor | 0

Beantwortet

MATLAB error using fzero function

I have no idea what intersections you want to find, so this is a guess. It should at least get you started — % clear all; c...

MATLAB error using fzero function

I have no idea what intersections you want to find, so this is a guess. It should at least get you started — % clear all; c...

11 Tage vor | 1

| akzeptiert

Beantwortet

How can you shift the position of x axis labels?

They’re probably text objects, however it’s not possible to access their properties. The only way to change them is to get them...

How can you shift the position of x axis labels?

They’re probably text objects, however it’s not possible to access their properties. The only way to change them is to get them...

11 Tage vor | 0

| akzeptiert

Beantwortet

Unable to set the scatter3 marker color using clim

Perhaps something like this — scatter3(x, y, z, 50, z, 'filled', 'MarkerEdgeColor', 'none'); The fourth argument to scatter3 ...

Unable to set the scatter3 marker color using clim

Perhaps something like this — scatter3(x, y, z, 50, z, 'filled', 'MarkerEdgeColor', 'none'); The fourth argument to scatter3 ...

11 Tage vor | 0

| akzeptiert

Beantwortet

How do I remove the tick marks on a bar plot at the top and the right?

Turn the Box property 'off', then use xline and yline to draw the lines — figure bar(rand(1,10)) Ax = gca; Ax.Box = 'off'...

How do I remove the tick marks on a bar plot at the top and the right?

Turn the Box property 'off', then use xline and yline to draw the lines — figure bar(rand(1,10)) Ax = gca; Ax.Box = 'off'...

11 Tage vor | 0

| akzeptiert

Beantwortet

PPG and Remote PPG peak detection

I went back to have another look at this. The two signals appear to have very little in common, even with respect to their Fo...

PPG and Remote PPG peak detection

I went back to have another look at this. The two signals appear to have very little in common, even with respect to their Fo...

12 Tage vor | 0

Beantwortet

latex in text doesn't work

Use two backslants (\\) in any sprintf call to ‘escape’ it — text(1, 1.5,sprintf('$\\tilde{y_x}$= %.3f',5), ... 'Interpre...

latex in text doesn't work

Use two backslants (\\) in any sprintf call to ‘escape’ it — text(1, 1.5,sprintf('$\\tilde{y_x}$= %.3f',5), ... 'Interpre...

12 Tage vor | 0

| akzeptiert

Beantwortet

How to avoid determining P wave in PVC beat ?

There is no true P-deflection preceding a PVC. That is essentially the definition of a Premature Ventricular Contraction or P...

How to avoid determining P wave in PVC beat ?

There is no true P-deflection preceding a PVC. That is essentially the definition of a Premature Ventricular Contraction or P...

12 Tage vor | 0

| akzeptiert

Beantwortet

matlab plot legend bug

It is not possible to determine what the problem is without the data and a text (not image) version of the code. One option i...

matlab plot legend bug

It is not possible to determine what the problem is without the data and a text (not image) version of the code. One option i...

13 Tage vor | 0

Beantwortet

Error with plotting function

You will need to use element-wise operators with vector arguments. See Array vs. Matrix Operations for details. Use surf for...

Error with plotting function

You will need to use element-wise operators with vector arguments. See Array vs. Matrix Operations for details. Use surf for...

13 Tage vor | 1

| akzeptiert

Beantwortet

Peak to peak amplitude

LD = load(websave('question_sample','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1270450/question_sample.ma...

Peak to peak amplitude

LD = load(websave('question_sample','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1270450/question_sample.ma...

13 Tage vor | 0

| akzeptiert

Beantwortet

Having data on yearly basis but want to have it on monthly basis

This is not the correct approach. Interpolating yearly data to monthly data creates data where none previously existed. Once t...

Having data on yearly basis but want to have it on monthly basis

This is not the correct approach. Interpolating yearly data to monthly data creates data where none previously existed. Once t...

13 Tage vor | 0

Beantwortet

How to sample from a distribution?

‘How do you use randsample (or maybe something else?) to sample from a distribution?‘ The random function can be used with kno...

How to sample from a distribution?

‘How do you use randsample (or maybe something else?) to sample from a distribution?‘ The random function can be used with kno...

13 Tage vor | 0

| akzeptiert

Beantwortet

Plot X Y Z data

I would use scatter3 or stem3 (or both) for this. If you use both, use stem3 first, then hold then scatter3, for example to col...

Plot X Y Z data

I would use scatter3 or stem3 (or both) for this. If you use both, use stem3 first, then hold then scatter3, for example to col...

14 Tage vor | 0

Beantwortet

How to perform linear regression between respective columns of two matrix/table?

One approach — A1 = randn(5,10) % Y-Values A2 = randn(5,10) ...

How to perform linear regression between respective columns of two matrix/table?

One approach — A1 = randn(5,10) % Y-Values A2 = randn(5,10) ...

14 Tage vor | 1

| akzeptiert

Beantwortet

errors on function vs time plot

The exponential function in MATLAB (and every other programming language I have encountered) is exp. Try something like this ...

errors on function vs time plot

The exponential function in MATLAB (and every other programming language I have encountered) is exp. Try something like this ...

15 Tage vor | 0

Beantwortet

i want to the fft for this bp but i have this error Error using fft Invalid data type. First argument must be double, single, int8, uint8, int16, uint16, int32, uint32, or log

Assuming that ‘bp’ does not contain any symbolic variables, perhaps this — FTbp = fft(double(bp)); This also assigns it to a ...

i want to the fft for this bp but i have this error Error using fft Invalid data type. First argument must be double, single, int8, uint8, int16, uint16, int32, uint32, or log

Assuming that ‘bp’ does not contain any symbolic variables, perhaps this — FTbp = fft(double(bp)); This also assigns it to a ...

15 Tage vor | 0

Beantwortet

How to play sound file (mp3,wave) other than built in sound files (gong, train,..) in app designer?

See if the audioread and audioplayer functions will do what you want.

How to play sound file (mp3,wave) other than built in sound files (gong, train,..) in app designer?

See if the audioread and audioplayer functions will do what you want.

15 Tage vor | 0

| akzeptiert

Beantwortet

Finding the index in the table with the incomplete input

‘Are there anyway to find the index with the incomplete input?’ Yes. However defining the threshold for the find argument may ...

Finding the index in the table with the incomplete input

‘Are there anyway to find the index with the incomplete input?’ Yes. However defining the threshold for the find argument may ...

15 Tage vor | 0

| akzeptiert

Beantwortet

Calculate number appearance within a range

The histcounts and histogram functions are perfect for this — LD = load(websave('TT','https://www.mathworks.com/matlabcentral/...

Calculate number appearance within a range

The histcounts and histogram functions are perfect for this — LD = load(websave('TT','https://www.mathworks.com/matlabcentral/...

15 Tage vor | 0

| akzeptiert

Beantwortet

Add date to a time data. Time data is from 7am to 7am.

It would help to have your Excel file, since I do not know if the time data are a duration array. Try something like this — ...

Add date to a time data. Time data is from 7am to 7am.

It would help to have your Excel file, since I do not know if the time data are a duration array. Try something like this — ...

15 Tage vor | 0

| akzeptiert

Beantwortet

Trying to extract data trail by trail, but my data is sampled at different sampling rate.

I would downsample the EMG signal using the resample function to do the comparisons. Retain the original signal of course, si...

Trying to extract data trail by trail, but my data is sampled at different sampling rate.

I would downsample the EMG signal using the resample function to do the comparisons. Retain the original signal of course, si...

15 Tage vor | 0

Beantwortet

Matlab running a script I executed first no matter which script I try to run

Check to see if you have a copy of it somewhere. MATLAB may be running the copy and ignoring the version you want to run, or it...

Matlab running a script I executed first no matter which script I try to run

Check to see if you have a copy of it somewhere. MATLAB may be running the copy and ignoring the version you want to run, or it...

16 Tage vor | 1

Beantwortet

yline error for Matlab example

First, you could have ‘overshadowed’ the line function somehow. To determine that, run this from a script or your Command Wind...

yline error for Matlab example

First, you could have ‘overshadowed’ the line function somehow. To determine that, run this from a script or your Command Wind...

16 Tage vor | 0

| akzeptiert

Beantwortet

Convert string array to numetric.

Try something like this — sv = ["01" "01" "10" "10" "01"];...

Convert string array to numetric.

Try something like this — sv = ["01" "01" "10" "10" "01"];...

16 Tage vor | 0