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

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

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

4 years ago | 0

| accepted

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

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

4 years ago | 1

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

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

4 years ago | 0

| accepted

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

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

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

4 years ago | 0

| accepted

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.

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

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

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

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

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

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

4 years ago | 0

| accepted

Answered
Convert string array to numetric.
Try something like this — sv = ["01" "01" "10" "10" "01"];...

4 years 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; ...

4 years ago | 0

| accepted

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

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

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

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

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

4 years ago | 0

Answered
How to find max of each iteration in cell array?
It would help to have your cell array. Try something like this — M = randn(3, 20, 2); C = squeeze(mat2cell(M,3,ones(20,1),...

4 years ago | 0

| accepted

Answered
lsqcurvefit: Function value and YDATA sizes are not equal.
The output returned by ‘kinetics’ needs to be: C = Cv(:,[1 3]); in this instance. The code now works, however the fit is ...

4 years ago | 1

| accepted

Answered
Removing NaNs from imported table
See if the rmmissing function (introduced in R2016b) will do what you want.

4 years ago | 2

| accepted

Load more