Answered

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...

8 days ago | 0

| accepted

Answered

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 ...

9 days ago | 0

| accepted

Answered

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'...

9 days ago | 0

| accepted

Answered

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...

9 days ago | 0

Answered

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...

9 days ago | 0

| accepted

Answered

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...

10 days ago | 0

| accepted

Answered

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...

10 days ago | 0

Answered

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...

10 days ago | 1

| accepted

Answered

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...

10 days ago | 0

| accepted

Answered

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...

10 days ago | 0

Answered

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...

11 days ago | 0

| accepted

Answered

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...

11 days ago | 0

Answered

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) ...

11 days ago | 1

| accepted

Answered

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 ...

12 days ago | 0

Answered

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 ...

12 days ago | 0

Answered

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.

12 days ago | 0

| accepted

Answered

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 ...

12 days ago | 0

| accepted

Answered

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/...

12 days ago | 0

| accepted

Answered

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 — ...

12 days ago | 0

| accepted

Answered

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...

13 days ago | 0

Answered

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...

13 days ago | 1

Answered

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...

13 days ago | 0

| accepted

Answered

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"];...

13 days ago | 0

Answered

How to assign the result of a row deletion operation to a new matrix?

I would do something like this — A = magic(10) % Save Original C = A; ...

How to assign the result of a row deletion operation to a new matrix?

I would do something like this — A = magic(10) % Save Original C = A; ...

14 days ago | 0

| accepted

Answered

Frequency distribution of monthly data

The tabulate function does not allow the edges to be specified. The histcounts function does. Define the edges as: Ev = li...

Frequency distribution of monthly data

The tabulate function does not allow the edges to be specified. The histcounts function does. Define the edges as: Ev = li...

14 days ago | 0

Answered

why fsolve cant find the solutoin?

I cannot understand ther fsolve function (or the call to it), and in any event, it is not necessary since it is possible calcula...

why fsolve cant find the solutoin?

I cannot understand ther fsolve function (or the call to it), and in any event, it is not necessary since it is possible calcula...

14 days ago | 2

| accepted

Answered

How can i found the infelction point from the data and remove the data before the first and last infelction points.

The data are quite noisy. After filtering them, it is not obvious what sort of inflection point you want or how to define it. ...

How can i found the infelction point from the data and remove the data before the first and last infelction points.

The data are quite noisy. After filtering them, it is not obvious what sort of inflection point you want or how to define it. ...

15 days ago | 0

Answered

Resampling ECG signal from Physionet 2017 datset

It cannot be made any more ‘accurate’ than the data in the original vector. Also, you are currently downsampling it, and in the...

Resampling ECG signal from Physionet 2017 datset

It cannot be made any more ‘accurate’ than the data in the original vector. Also, you are currently downsampling it, and in the...

15 days ago | 0

Answered

Plotting complex sinusoid to a cosine wave

Add to the complex argument to shift the complex exponential result by 45° — Tt = 1; % Total...

Plotting complex sinusoid to a cosine wave

Add to the complex argument to shift the complex exponential result by 45° — Tt = 1; % Total...

16 days ago | 0

Answered

Divide annual timeseries to monthly ones

A for loop is the easiest way to do this — LD = load(websave('dataset','https://www.mathworks.com/matlabcentral/answers/upload...

Divide annual timeseries to monthly ones

A for loop is the easiest way to do this — LD = load(websave('dataset','https://www.mathworks.com/matlabcentral/answers/upload...

16 days ago | 0

| accepted