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 add variables into a string within a table?

The only option appears to be to turn the string variable into a char array first: str = "0001336363"; strc = char(str); Out...

How do I add variables into a string within a table?

The only option appears to be to turn the string variable into a char array first: str = "0001336363"; strc = char(str); Out...

etwa 8 Stunden ago | 0

| accepted

Answered

Computing findpeaks along 3-Dimensional matrix

I am guessing here, since I do not have your data. Since findpeaks is going to return vectors for the peaks, locations (and oth...

Computing findpeaks along 3-Dimensional matrix

I am guessing here, since I do not have your data. Since findpeaks is going to return vectors for the peaks, locations (and oth...

etwa 9 Stunden ago | 0

Answered

Fill in a Polar Scatter Plot

Do everything in Cartesian coordinates, although defining the coordinates in terms of and . Then, use pol2cart to create them ...

Fill in a Polar Scatter Plot

Do everything in Cartesian coordinates, although defining the coordinates in terms of and . Then, use pol2cart to create them ...

etwa 9 Stunden ago | 0

Answered

finding the exact points of Zero crossing using interpolation method

You are plotting the values of the data at the indices that ‘zci’ returns, not the interpolated aero-crossings. It would be b...

finding the exact points of Zero crossing using interpolation method

You are plotting the values of the data at the indices that ‘zci’ returns, not the interpolated aero-crossings. It would be b...

etwa 13 Stunden ago | 0

| accepted

Answered

how do i find minimum value of function with matlab?

I agree with you that using the diff function is the appropriate way to begin.

how do i find minimum value of function with matlab?

I agree with you that using the diff function is the appropriate way to begin.

etwa 14 Stunden ago | 0

Answered

Can't plot polyfit

The polyfit function also needs to know what degree of polynomial you want to fit: p = polyfit(x,y,n) where ‘n’ is the degree...

Can't plot polyfit

The polyfit function also needs to know what degree of polynomial you want to fit: p = polyfit(x,y,n) where ‘n’ is the degree...

etwa 15 Stunden ago | 0

Answered

Matlab code and filterDesigner give different plots for the same setting of Chebyshev II bandpass filter?

I suspect that filterDesigner uses the second-order-section implementation of the filter. You should, as well. Change: [...

Matlab code and filterDesigner give different plots for the same setting of Chebyshev II bandpass filter?

I suspect that filterDesigner uses the second-order-section implementation of the filter. You should, as well. Change: [...

etwa 16 Stunden ago | 0

| accepted

Answered

How to find the width of plotted graph at selected Y-axis level?

Try this: lambda = linspace(0.4, 0.6); % Wavelength Vector s = sinc(((0.47:0.02:0....

How to find the width of plotted graph at selected Y-axis level?

Try this: lambda = linspace(0.4, 0.6); % Wavelength Vector s = sinc(((0.47:0.02:0....

etwa 17 Stunden ago | 1

| accepted

Answered

how to get the value of x, from this equation: 0.2exp(x)-x^(0.25) = 0

I do not understand what the problem is: fun = @(x) (0.2*exp(x)-x.^(0.25)); x0 = [1.5,0]; x = fsolve(fun,x0); xv = linspac...

how to get the value of x, from this equation: 0.2exp(x)-x^(0.25) = 0

I do not understand what the problem is: fun = @(x) (0.2*exp(x)-x.^(0.25)); x0 = [1.5,0]; x = fsolve(fun,x0); xv = linspac...

ein Tag ago | 0

Answered

2 Scenario Legend Setup

See the Line Properties documentation on DisplayName. That might do what you want.

2 Scenario Legend Setup

See the Line Properties documentation on DisplayName. That might do what you want.

ein Tag ago | 0

Answered

Change datetime display format

It is possible. It just takes some coding gymnastics: tj = 2.456870501842000e+06; mtime = datetime(tj,'ConvertFrom','juliand...

Change datetime display format

It is possible. It just takes some coding gymnastics: tj = 2.456870501842000e+06; mtime = datetime(tj,'ConvertFrom','juliand...

ein Tag ago | 1

| accepted

Answered

how to get a cdf plot of my data

Try this: [f,x,flo,fup] = ecdf(fitness); figure loglog(x, f) hold on plot(x, [flo fup], '--r') hold off grid legend('...

how to get a cdf plot of my data

Try this: [f,x,flo,fup] = ecdf(fitness); figure loglog(x, f) hold on plot(x, [flo fup], '--r') hold off grid legend('...

2 Tage ago | 0

| accepted

Answered

syms 0-by-1

Ther problem is that ‘eqn’ evaluates to: eqn = 5863/20 == 923 so there are no variables in it to solve for.

syms 0-by-1

Ther problem is that ‘eqn’ evaluates to: eqn = 5863/20 == 923 so there are no variables in it to solve for.

2 Tage ago | 0

Answered

Displaying random numbers as a graph

One approach is to use the inpolygon function: x = linspace(0, 10); y = exp(-(x-5).^2)*0.2; r = rand(1000,2).*[10 0.25]; [i...

Displaying random numbers as a graph

One approach is to use the inpolygon function: x = linspace(0, 10); y = exp(-(x-5).^2)*0.2; r = rand(1000,2).*[10 0.25]; [i...

2 Tage ago | 1

| accepted

Answered

Creating a Filter and applying it

See: Realize or Apply the Filter to Input Data

Creating a Filter and applying it

See: Realize or Apply the Filter to Input Data

3 Tage ago | 1

| accepted

Answered

Unit of FFT in matlab

The fft function does not change the units of the time-domain argument it is given. The fft function produces a double-sided ...

Unit of FFT in matlab

The fft function does not change the units of the time-domain argument it is given. The fft function produces a double-sided ...

3 Tage ago | 0

Answered

Predictions for stepwise regression model

No predict function is defined for stepwisefit. One is defined for stepwiselm: m = stepwiselm(matrix , Y) prediction1 = pr...

Predictions for stepwise regression model

No predict function is defined for stepwisefit. One is defined for stepwiselm: m = stepwiselm(matrix , Y) prediction1 = pr...

3 Tage ago | 0

| accepted

Answered

Create a row vector of the diagonal elements from matrix.

Meet the diag function!

Create a row vector of the diagonal elements from matrix.

Meet the diag function!

3 Tage ago | 0

| accepted

Answered

How do you use values from an array as serial numbers to extract values from a different array?

It is not possible to reference ‘row 0’ since MATLAB subscripts begin at 1. I am not certain what you want, so see if this sh...

How do you use values from an array as serial numbers to extract values from a different array?

It is not possible to reference ‘row 0’ since MATLAB subscripts begin at 1. I am not certain what you want, so see if this sh...

3 Tage ago | 0

Answered

How to mix multiple audio signals in Matlab?

It is somewhat difficult to follow your code (and I cannot run it since my version of MATLAB can only run actual code, not image...

How to mix multiple audio signals in Matlab?

It is somewhat difficult to follow your code (and I cannot run it since my version of MATLAB can only run actual code, not image...

3 Tage ago | 0

Answered

Residual values for a linear regression fit

I would do something like this: x = [1,1,2,2,3,4,4,6]'; y = [8,1,1,2,2,3,4,1]'; xv = x; yv = y; for k = 1:numel(x) ...

Residual values for a linear regression fit

I would do something like this: x = [1,1,2,2,3,4,4,6]'; y = [8,1,1,2,2,3,4,1]'; xv = x; yv = y; for k = 1:numel(x) ...

4 Tage ago | 0

| accepted

Answered

ode45 failing but other solvers work fine

Run this from your Command Window or a script: which ode45 -all You should only get: C:\Program Files\MATLAB\R2020b\toolbox...

ode45 failing but other solvers work fine

Run this from your Command Window or a script: which ode45 -all You should only get: C:\Program Files\MATLAB\R2020b\toolbox...

4 Tage ago | 0

| accepted

Answered

How can i visualize ecg contain 12 leads in 12 different figures

This is the standard format for EKG record display: EKGD = load('temp.mat'); EKG = EKGD.signal; Leadc = {'I','II','III','a...

How can i visualize ecg contain 12 leads in 12 different figures

This is the standard format for EKG record display: EKGD = load('temp.mat'); EKG = EKGD.signal; Leadc = {'I','II','III','a...

4 Tage ago | 2

| accepted

Answered

Use vectors to index an 2D array

Use the sub2ind function to create linear indices from the subscripts: X = [1 2 3 4]; Y = [4 3 2 1]; A = zeros(4); Lidx =...

Use vectors to index an 2D array

Use the sub2ind function to create linear indices from the subscripts: X = [1 2 3 4]; Y = [4 3 2 1]; A = zeros(4); Lidx =...

4 Tage ago | 1

| accepted

Answered

Plot range of values in a bar graph

I was not certain what result you wanted when I replied to your Comment to Plot range of values as bars. I gave a sort of gener...

Plot range of values in a bar graph

I was not certain what result you wanted when I replied to your Comment to Plot range of values as bars. I gave a sort of gener...

4 Tage ago | 0

Answered

How to find x-values when y-function equals a set value?

Try this: x = linspace(0.54, 0.61); % Create Data y = exp(-(x-0.58).^2*1E+4); ...

How to find x-values when y-function equals a set value?

Try this: x = linspace(0.54, 0.61); % Create Data y = exp(-(x-0.58).^2*1E+4); ...

4 Tage ago | 0

| accepted

Answered

changing sampling rate of an audio

Import the file, then use the Signal Processing Toolbox resample function to resample it to a different sampling frequency.

changing sampling rate of an audio

Import the file, then use the Signal Processing Toolbox resample function to resample it to a different sampling frequency.

4 Tage ago | 0

Answered

Converting Frequency domain to time domain

‘How do I convert it into Acceleration vs time data using ifft function.’ Thet depends entirely on what the data are. If you...

Converting Frequency domain to time domain

‘How do I convert it into Acceleration vs time data using ifft function.’ Thet depends entirely on what the data are. If you...

4 Tage ago | 0

Answered

Trying to Plot feedback system

The image is a bit difficult to read. The error appears to be thrown with the step call. This may likely be due to your having...

Trying to Plot feedback system

The image is a bit difficult to read. The error appears to be thrown with the step call. This may likely be due to your having...

5 Tage ago | 0

Answered

raise power to power in title

Try this (using LaTeX): figure plot(rand(50,1), rand(50,1), 'p') axis([0 1 0 1]) title('$y = x \times e^{- \frac{x^2}{2...

raise power to power in title

Try this (using LaTeX): figure plot(rand(50,1), rand(50,1), 'p') axis([0 1 0 1]) title('$y = x \times e^{- \frac{x^2}{2...

5 Tage ago | 1

| accepted