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

fitnessfcn: Not enough input arguments.

It would help to see your ga call. When I run your function using this ga call: Xest = ga(@objfun, 4) it produces (in one ...

fitnessfcn: Not enough input arguments.

It would help to see your ga call. When I run your function using this ga call: Xest = ga(@objfun, 4) it produces (in one ...

3 hours ago | 0

Answered

How do I get the differential of Hermite polynomial function?

Did you run the code you posted? When I run it (in R2020b): syms m1 x DHx = diff(hermiteH(m1, x),x) I get: DHx = 2*m1...

How do I get the differential of Hermite polynomial function?

Did you run the code you posted? When I run it (in R2020b): syms m1 x DHx = diff(hermiteH(m1, x),x) I get: DHx = 2*m1...

3 hours ago | 0

Answered

Isolating a phase bode plot from the function bode(sys)

It would be easier to just get the output and re-plot it. See Obtain Magnitude and Phase Data.

Isolating a phase bode plot from the function bode(sys)

It would be easier to just get the output and re-plot it. See Obtain Magnitude and Phase Data.

4 hours ago | 1

Answered

How to format numbers in exponential notation with base 1e3

This will correctly calculate tha mantissas: rfxm = @(x,xpnt) [sign(x).*10.^(log10(abs(x))-xpnt)]; % Anonymo...

How to format numbers in exponential notation with base 1e3

This will correctly calculate tha mantissas: rfxm = @(x,xpnt) [sign(x).*10.^(log10(abs(x))-xpnt)]; % Anonymo...

5 hours ago | 0

Answered

Practical use of Phase Delay for IIR Filter on Pure Sinusoid

To avoid the phase shift, use the filtfilt function instead of filter.

Practical use of Phase Delay for IIR Filter on Pure Sinusoid

To avoid the phase shift, use the filtfilt function instead of filter.

5 hours ago | 0

Answered

Plot serial date of excel into MATLAB

The first column is numeric representation of yyyymmdd so there are likely several ways to create a datetime array from it. T...

Plot serial date of excel into MATLAB

The first column is numeric representation of yyyymmdd so there are likely several ways to create a datetime array from it. T...

6 hours ago | 0

Answered

Why is the following numerical integration not working?

Try this: TMD = integral2(@Optics,0,2,0,2*pi); (I did not run your code, so there may be other errors as well.)

Why is the following numerical integration not working?

Try this: TMD = integral2(@Optics,0,2,0,2*pi); (I did not run your code, so there may be other errors as well.)

6 hours ago | 0

Answered

How to curve fitting a cosine function with exponential decay tau?

Try this: y = detrend(y); % Remove Linear Trend yu = max(y); ...

How to curve fitting a cosine function with exponential decay tau?

Try this: y = detrend(y); % Remove Linear Trend yu = max(y); ...

15 hours ago | 0

Answered

how to make group by extracting data?

I am not certain what you want to do. One problem is that the elements of ‘CM’ appear to be outside the range of (-9,9). In an...

how to make group by extracting data?

I am not certain what you want to do. One problem is that the elements of ‘CM’ appear to be outside the range of (-9,9). In an...

16 hours ago | 0

Answered

Count the number of times a value appears in a row and save the row number

Try this: rowsum = sum((A <= 1.5), 2); result = find(rowsum >= 3) producing: result = 1 2 3 4 ...

Count the number of times a value appears in a row and save the row number

Try this: rowsum = sum((A <= 1.5), 2); result = find(rowsum >= 3) producing: result = 1 2 3 4 ...

16 hours ago | 0

| accepted

Answered

How to extract specific data?

Try this: a1 = [10 20 30 40 50 60]; b1 = [11 21 31 41 51 61]; c1 = [12 22 32 42 52 62]; e = [0 3 6]; abc = cat(1, a1, b1, ...

How to extract specific data?

Try this: a1 = [10 20 30 40 50 60]; b1 = [11 21 31 41 51 61]; c1 = [12 22 32 42 52 62]; e = [0 3 6]; abc = cat(1, a1, b1, ...

17 hours ago | 0

| accepted

Answered

ı want to plot he gradients and iso curves of a function

See How to plot gradients ? for a recent example.

ı want to plot he gradients and iso curves of a function

See How to plot gradients ? for a recent example.

21 hours ago | 0

| accepted

Answered

quadratic equation function help

Your function file must be saved somewhere on your MATLAB user path as: quadFunc.m so you can use it. If you are unfamiliar w...

quadratic equation function help

Your function file must be saved somewhere on your MATLAB user path as: quadFunc.m so you can use it. If you are unfamiliar w...

22 hours ago | 0

Answered

Plotting Multivariable x, y, and z for a data set

The problem is with your choice of coordinates. When I ran your code, it threw: Warning: The underlying triangulation is em...

Plotting Multivariable x, y, and z for a data set

The problem is with your choice of coordinates. When I ran your code, it threw: Warning: The underlying triangulation is em...

23 hours ago | 0

| accepted

Answered

Find z value out of x and y values from a countour in command window

Clicking on the contours will only show you the level of the contour. To see the value labels of the contours use ShowText: c...

Find z value out of x and y values from a countour in command window

Clicking on the contours will only show you the level of the contour. To see the value labels of the contours use ShowText: c...

23 hours ago | 0

Answered

Solving (non-linear equation) for a single unknown?

If you want to use the Symbolic Math Toolbox for this, use solve not fzero: syms M P4 = 0.448159 P1= 0.101325 y=1.4 equ1...

Solving (non-linear equation) for a single unknown?

If you want to use the Symbolic Math Toolbox for this, use solve not fzero: syms M P4 = 0.448159 P1= 0.101325 y=1.4 equ1...

23 hours ago | 0

Answered

3d graph to compare curves with given x, y, z values

Try something like this: x = 0:31; y = 0:8; [X,Y] = ndgrid(x,y); % Create [X,Y] Grids Z1 = 2...

3d graph to compare curves with given x, y, z values

Try something like this: x = 0:31; y = 0:8; [X,Y] = ndgrid(x,y); % Create [X,Y] Grids Z1 = 2...

24 hours ago | 0

Answered

What does the 'metric' parameter means in imfindcircles?

It means how ‘round’ the objects are. See Step 5: Determine which Objects are Round for a more complete description.

What does the 'metric' parameter means in imfindcircles?

It means how ‘round’ the objects are. See Step 5: Determine which Objects are Round for a more complete description.

24 hours ago | 0

Answered

How to calculate 90% confidence interval

Use the paramci funciton: abc = readmatrix('abc.txt'); Inabc=log(abc); pd = fitdist(abc,'Normal') ci10 = paramci(pd, 'Alpha'...

How to calculate 90% confidence interval

Use the paramci funciton: abc = readmatrix('abc.txt'); Inabc=log(abc); pd = fitdist(abc,'Normal') ci10 = paramci(pd, 'Alpha'...

1 day ago | 0

Answered

minutes to hour and minutes

Use the (:) subscript convention to forec the ‘mins’ argument to be a column vector: hr_min = @(mins) [fix(mins(:)/60) rem(min...

minutes to hour and minutes

Use the (:) subscript convention to forec the ‘mins’ argument to be a column vector: hr_min = @(mins) [fix(mins(:)/60) rem(min...

1 day ago | 0

Answered

How do separate plot into months?

Try something like this: t = datetime('now')+hours(0:8760); % Create Array d = randn(size(t)); ...

How do separate plot into months?

Try something like this: t = datetime('now')+hours(0:8760); % Create Array d = randn(size(t)); ...

2 days ago | 0

Answered

Issues with loop- "Too many input arguments."

You are not calling it correctly! See if: fun= @(x) normpdf(x) [f]= NC_2(4,-3,0,fun) does what you want.

Issues with loop- "Too many input arguments."

You are not calling it correctly! See if: fun= @(x) normpdf(x) [f]= NC_2(4,-3,0,fun) does what you want.

2 days ago | 0

| accepted

Answered

How do I plot an equation that requires I divide over a range?

There are (at least) two problems: First: r = 0.01:0.02; the default step for the colon,: operator is 1, so the range for...

How do I plot an equation that requires I divide over a range?

There are (at least) two problems: First: r = 0.01:0.02; the default step for the colon,: operator is 1, so the range for...

2 days ago | 0

Answered

Plotting lissajous (phase figure) gives wrong results

Use a slightly different ode45 call, and then plot the columns of ‘y’ against each other: [t,y] = ode45(M,[0 100],[2 2]); f...

Plotting lissajous (phase figure) gives wrong results

Use a slightly different ode45 call, and then plot the columns of ‘y’ against each other: [t,y] = ode45(M,[0 100],[2 2]); f...

2 days ago | 0

| accepted

Answered

Plotting the tone frequencies

Note that ‘t’ seems to be missing. Substituting for it and changing the xlim parameters: t = values; figure ...

Plotting the tone frequencies

Note that ‘t’ seems to be missing. Substituting for it and changing the xlim parameters: t = values; figure ...

2 days ago | 0

| accepted

Answered

x(t) = -u(t-3)+2u(t+1)-2u(t-1)+u(t-3)

Straightforward: u = @(t) t>0; t = linspace(-5,5); x = @(t) -u(t-3)+2*u(t+1)-2*u(t-1)+u(t-3); figure plot(t, x(t)) grid...

x(t) = -u(t-3)+2u(t+1)-2u(t-1)+u(t-3)

Straightforward: u = @(t) t>0; t = linspace(-5,5); x = @(t) -u(t-3)+2*u(t+1)-2*u(t-1)+u(t-3); figure plot(t, x(t)) grid...

2 days ago | 0

Answered

Enhancing an Audio file

Amplifying it is straightforward: [y,Fs] = audioread('Madam’s Comments on draft 3 of ppt (mp3cut.net)-2.mp3'); [yh,yl] = boun...

Enhancing an Audio file

Amplifying it is straightforward: [y,Fs] = audioread('Madam’s Comments on draft 3 of ppt (mp3cut.net)-2.mp3'); [yh,yl] = boun...

2 days ago | 0

| accepted

Answered

c2d function 'zoh' method formula

See the documentation section on Continuous-Discrete Conversion Methods That goes into a reasonably detailed explanation of all...

c2d function 'zoh' method formula

See the documentation section on Continuous-Discrete Conversion Methods That goes into a reasonably detailed explanation of all...

2 days ago | 0

Answered

how to read data from file into a char array?

If you want to read the file as text, use the fileread function. You can then do what you want with it.

how to read data from file into a char array?

If you want to read the file as text, use the fileread function. You can then do what you want with it.

2 days ago | 0