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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12 days ago | 0

| accepted

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

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

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

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

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

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

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

15 days ago | 0

| accepted

Answered
How to make two signals of same dimensions?
Since we know nothing about them other than that they are different lengths (assuming they are both either row vectors or column...

15 days ago | 0

Answered
Sinusoidal Frequency Response of a Transfer Function
If I understand your Question correctly, the bode, bodeplot, nichols, freqresp and lsim functions will do what you want, or for ...

15 days ago | 0

| accepted

Answered
How to do an Integral in matlab?
I would use the integral function.

15 days ago | 1

Answered
Add monthly value from one table to daily data in another table by matching month-year
I do not have a thorough understanding of what you want to do. One option could be join, and another could be synchronize.

16 days ago | 0

| accepted

Answered
How to create for loop on date?
If you want to simply isolate the dates from September 2019 to April 2020, ise the isbetween function (or logical indexing, esse...

16 days ago | 0

Load more