Hic sunt dracones!

PROFESSIONAL: Physician (M.D.): Diplomate of the American Board of Internal Medicine; M.Sc. Biomedical Engineering: Instrumentation, Signal Processing, Control, System Identification, Parameter Estimation

NON-PROFESSIONAL: Amateur Extra Class Amateur Radio Operator; Private Pilot, Airplane Single Engine Land, Instrument Rating Airplane; Gamer

NOTE: I do not respond to emails or personal messages, unless they are about my File Exchange contributions.

Answered

How do I find the oscillation of these wobbles on matlab?

I am not certain what you want. If you want to find the predominant frequency, the best way is likely to use the fft function...

How do I find the oscillation of these wobbles on matlab?

I am not certain what you want. If you want to find the predominant frequency, the best way is likely to use the fft function...

etwa 11 Stunden ago | 0

Answered

Confusion with transfer functions

They are completely different functions. The tf function defines a transfer function in the Control System Toolbox. The tf...

Confusion with transfer functions

They are completely different functions. The tf function defines a transfer function in the Control System Toolbox. The tf...

etwa 16 Stunden ago | 0

Answered

need to make a function to change a high value to the average in a matrice

The fillmissing function (R2016b and later releases) may be able to do what you want. First, set the values >300 to NaN (you do...

need to make a function to change a high value to the average in a matrice

The fillmissing function (R2016b and later releases) may be able to do what you want. First, set the values >300 to NaN (you do...

etwa 17 Stunden ago | 1

| accepted

Answered

"The value on the right-hand side of the assignment has the wrong width." Error

I am not certain where the problem is in the two lines you posted. Try this: idx= strcmp(station001_eus{:,10}, ',,7'); sta...

"The value on the right-hand side of the assignment has the wrong width." Error

I am not certain where the problem is in the two lines you posted. Try this: idx= strcmp(station001_eus{:,10}, ',,7'); sta...

etwa 18 Stunden ago | 0

| accepted

Answered

Create month array?

Try this: t = datetime('01', 'InputFormat','MM', 'Format','MM') : calmonths(1) : datetime('12', 'InputFormat','MM'); .

Create month array?

Try this: t = datetime('01', 'InputFormat','MM', 'Format','MM') : calmonths(1) : datetime('12', 'InputFormat','MM'); .

etwa 21 Stunden ago | 0

Answered

Eliminates a value less than 1 and replace with nan for all the row

What you want the result to be is not obvious. Try this: TT(ind,:)={NaN}; .

Eliminates a value less than 1 and replace with nan for all the row

What you want the result to be is not obvious. Try this: TT(ind,:)={NaN}; .

ein Tag ago | 1

| accepted

Answered

Dashed confidence intervals and xlabel

To plot as you want to plot, you need to create an ‘x’ vector to plot against. Since you are plotting against the row indices, ...

Dashed confidence intervals and xlabel

To plot as you want to plot, you need to create an ‘x’ vector to plot against. Since you are plotting against the row indices, ...

ein Tag ago | 0

| accepted

Answered

how can I set axis's tick or scale like photo.. help plz,,

Add these lines: grid set(gca, 'XScale','log', 'YScale','log', 'YLim',[0.01 100]) so the complete code is now: CD = @(Re) ...

how can I set axis's tick or scale like photo.. help plz,,

Add these lines: grid set(gca, 'XScale','log', 'YScale','log', 'YLim',[0.01 100]) so the complete code is now: CD = @(Re) ...

2 Tage ago | 0

| accepted

Answered

Why I am unable to recreate curve fitting equation?

I have no idea what the problem is. The fminsearch function had no probllem with it. The Code — f = @(b,x) b(1).*exp(b(2)....

Why I am unable to recreate curve fitting equation?

I have no idea what the problem is. The fminsearch function had no probllem with it. The Code — f = @(b,x) b(1).*exp(b(2)....

2 Tage ago | 1

Answered

QRS complex detection in ventricular tachycardia ECG

If this is a homework problem, you will not be able to use this code. If it is for research, you can likely adapt it to other p...

QRS complex detection in ventricular tachycardia ECG

If this is a homework problem, you will not be able to use this code. If it is for research, you can likely adapt it to other p...

2 Tage ago | 0

Answered

finding troughs in signal

See my Answer in: How to find QRS complex for this Graph? for one approach to this problem. You will likely need to modify tha...

finding troughs in signal

See my Answer in: How to find QRS complex for this Graph? for one approach to this problem. You will likely need to modify tha...

2 Tage ago | 0

Answered

Concatenating 2 vectors into 1 vector with the values adjacent to each other

Yes. Use datetime to create them. Example — CO2_Mtx = [2012 01 rand; 2012 2 rand; 1985 5 rand; 1985 6 rand]; ...

Concatenating 2 vectors into 1 vector with the values adjacent to each other

Yes. Use datetime to create them. Example — CO2_Mtx = [2012 01 rand; 2012 2 rand; 1985 5 rand; 1985 6 rand]; ...

3 Tage ago | 2

| accepted

Answered

How to find QRS complex for this Graph?

This is not a trivial problem. This EKG displays the Wolf-Parkinson-White syndrome, so the normal Q-wave is not present. It ac...

How to find QRS complex for this Graph?

This is not a trivial problem. This EKG displays the Wolf-Parkinson-White syndrome, so the normal Q-wave is not present. It ac...

3 Tage ago | 0

| accepted

Answered

Convert MOV to AVI file

The only option appears to be VideoWriter. Several Answers I looked through appear to indicate that it can do what you describe...

Convert MOV to AVI file

The only option appears to be VideoWriter. Several Answers I looked through appear to indicate that it can do what you describe...

3 Tage ago | 0

Answered

Organising data for machine learning using buffer function

There may be more efficient ways to create specific features for classification. See: Introduction to Feature Selection for a n...

Organising data for machine learning using buffer function

There may be more efficient ways to create specific features for classification. See: Introduction to Feature Selection for a n...

3 Tage ago | 0

Answered

Getting a constant instead of (2*exp(-3/2))/3 + 1/3 solving a differential equation

Use the vpa or double function, depending on the result you want.

Getting a constant instead of (2*exp(-3/2))/3 + 1/3 solving a differential equation

Use the vpa or double function, depending on the result you want.

3 Tage ago | 1

Answered

Place grid on top of patches

The gridlines can be put on top of the figure, and you can also vary the transparency of the grid lines. Example — x = 1:10;...

Place grid on top of patches

The gridlines can be put on top of the figure, and you can also vary the transparency of the grid lines. Example — x = 1:10;...

3 Tage ago | 0

Answered

How to plot two lines in a looped subplot in matlab?

Add an if block in the loop: lines = rand([30 5]); line2 = rand([30 1]); k = 5; for j = 1:k subplot(3, 2, j); plo...

How to plot two lines in a looped subplot in matlab?

Add an if block in the loop: lines = rand([30 5]); line2 = rand([30 1]); k = 5; for j = 1:k subplot(3, 2, j); plo...

3 Tage ago | 0

| accepted

Answered

iterative search through matrix in order to add a column

I have no clear idea what you want to do. Try this: First = [randi(50, 100, 1) rand(100,1)]; Second = [randi(50, 10, 1) ra...

iterative search through matrix in order to add a column

I have no clear idea what you want to do. Try this: First = [randi(50, 100, 1) rand(100,1)]; Second = [randi(50, 10, 1) ra...

4 Tage ago | 1

Answered

Shade area between a curve and a vertical line and the x axis

Add these lines: xa = linspace(0.14, 0.2, 25); % Define ‘x’ For ‘patch’ ya = normpdf(xa,.1,.02)...

Shade area between a curve and a vertical line and the x axis

Add these lines: xa = linspace(0.14, 0.2, 25); % Define ‘x’ For ‘patch’ ya = normpdf(xa,.1,.02)...

4 Tage ago | 0

| accepted

Answered

help using fzero to find the intersection

At the intersections, the difference between the functions is 0, and since fzero is a root-finding algorithm, choose and appropr...

help using fzero to find the intersection

At the intersections, the difference between the functions is 0, and since fzero is a root-finding algorithm, choose and appropr...

4 Tage ago | 0

Answered

Plotting a parametric curve in Matlab..(Dimension error)

Use element-wise operations (the ‘dot operator’): x=e*cos(theta)./sqrt(4/3+4/3*cos(theta).*sin(theta)); y=e*sin(theta)./sqrt(...

Plotting a parametric curve in Matlab..(Dimension error)

Use element-wise operations (the ‘dot operator’): x=e*cos(theta)./sqrt(4/3+4/3*cos(theta).*sin(theta)); y=e*sin(theta)./sqrt(...

4 Tage ago | 0

| accepted

Answered

Calculate if statement based on date

Try this: T1 = readtable('Precip.Sample.xlsx'); TT1 = table2timetable(T1); TTRP = retime(TT1(:,1:4), 'daily', 'sum'); TTRL ...

Calculate if statement based on date

Try this: T1 = readtable('Precip.Sample.xlsx'); TT1 = table2timetable(T1); TTRP = retime(TT1(:,1:4), 'daily', 'sum'); TTRL ...

5 Tage ago | 0

Answered

Sorting elements according to an array

I am not certain what you want. Try this: DATA = randi([1 100], 25, 1); % Create ...

Sorting elements according to an array

I am not certain what you want. Try this: DATA = randi([1 100], 25, 1); % Create ...

5 Tage ago | 1

| accepted

Answered

How to solve an ODE system with time-dependent variables in MATLAB?

One method of doing that is in ODE with Time-Dependent Terms using linear interpolation. However to do that you would have to p...

How to solve an ODE system with time-dependent variables in MATLAB?

One method of doing that is in ODE with Time-Dependent Terms using linear interpolation. However to do that you would have to p...

5 Tage ago | 0

Answered

Matlab error "Matrix dimensions must agree"

Integrating an array, set 'ArrayValued' to 'true': By = pz .* BiotSavart .* integral(fy,0,2*pi, 'ArrayValued',1); Bz = BiotSa...

Matlab error "Matrix dimensions must agree"

Integrating an array, set 'ArrayValued' to 'true': By = pz .* BiotSavart .* integral(fy,0,2*pi, 'ArrayValued',1); Bz = BiotSa...

5 Tage ago | 0

| accepted

Answered

Motion Tracking with Accelerometer

The cumtrapz results do not appear to be accumulating with respect to time. Without being able to see the data or your code, my...

Motion Tracking with Accelerometer

The cumtrapz results do not appear to be accumulating with respect to time. Without being able to see the data or your code, my...

6 Tage ago | 0

Answered

ODE45 How to use atmosisa function with Height function as Input?

‘but when I put in as z(2) as input, it gives error’ That is most likely because you do not pass it as an argument to your ‘d...

ODE45 How to use atmosisa function with Height function as Input?

‘but when I put in as z(2) as input, it gives error’ That is most likely because you do not pass it as an argument to your ‘d...

6 Tage ago | 0

Answered

Broken link: Count Steps Using MPU9250 Sensor of BeagleboneBlue Hardware

I’m not certain how you’ve attempted to get that documentation. A DuckDuckGo search finds: Counting Steps using BeagleBone Blue...

Broken link: Count Steps Using MPU9250 Sensor of BeagleboneBlue Hardware

I’m not certain how you’ve attempted to get that documentation. A DuckDuckGo search finds: Counting Steps using BeagleBone Blue...

6 Tage ago | 0

Answered

solve vs. fsolve

Give fsolve different starting points, one positive and one negative: eqn1 = @(x) x.^2 - 4; for k = 1:2 a2(k) = fsolve(e...

solve vs. fsolve

Give fsolve different starting points, one positive and one negative: eqn1 = @(x) x.^2 - 4; for k = 1:2 a2(k) = fsolve(e...

6 Tage ago | 0

| accepted