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

Reaction kinetics parameter determination

See Parameter Estimation for a System of Differential Equations for a working example of how to do this correctly. Unfortuna...

Reaction kinetics parameter determination

See Parameter Estimation for a System of Differential Equations for a working example of how to do this correctly. Unfortuna...

alrededor de 2 horas ago | 0

| accepted

Answered

Plot not generating graph

Do element-wise division in ‘L_to_D’: ratio= CL./CD; Then it works and the plotted curve appears!

Plot not generating graph

Do element-wise division in ‘L_to_D’: ratio= CL./CD; Then it works and the plotted curve appears!

alrededor de 5 horas ago | 0

| accepted

Answered

Display format of numbers shown

The options are likely limited. See the Displayed Data section of the HeatmapChart Properties documentation to see what optio...

Display format of numbers shown

The options are likely limited. See the Displayed Data section of the HeatmapChart Properties documentation to see what optio...

alrededor de 8 horas ago | 0

Answered

How to sum different cells of cell array

I would do something like this: C = {[1,2,3;4,5,6] [3,24,35;46,58,69] [10,2,3;24,85,6] [11,22,33;54,15,16]}; cat...

How to sum different cells of cell array

I would do something like this: C = {[1,2,3;4,5,6] [3,24,35;46,58,69] [10,2,3;24,85,6] [11,22,33;54,15,16]}; cat...

alrededor de 12 horas ago | 0

Answered

How to plot y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);

Try these: x = linspace(-10, 10, 150); y = (exp(sqrt(x)))./(x.*x - x.*(exp(x))).^(1/3); figure plot(x, real(y), x, ima...

How to plot y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);

Try these: x = linspace(-10, 10, 150); y = (exp(sqrt(x)))./(x.*x - x.*(exp(x))).^(1/3); figure plot(x, real(y), x, ima...

alrededor de 15 horas ago | 0

Answered

What is wrong I have been getting errors that it is wrong

Try something like this: outputfcn = @(x,y) sin(sqrt((x.^2)+(y.^2)))./sqrt((x.^2)+(y.^2)); x = linspace(-10, 10, 25); y = li...

What is wrong I have been getting errors that it is wrong

Try something like this: outputfcn = @(x,y) sin(sqrt((x.^2)+(y.^2)))./sqrt((x.^2)+(y.^2)); x = linspace(-10, 10, 25); y = li...

alrededor de 17 horas ago | 1

| accepted

Answered

MATLAB 2020b fails to start in Windows 10

See if the solution in Why will MATLAB not start up properly on my Windows based system? - MATLAB Answers - MATLAB Central will ...

MATLAB 2020b fails to start in Windows 10

See if the solution in Why will MATLAB not start up properly on my Windows based system? - MATLAB Answers - MATLAB Central will ...

alrededor de 17 horas ago | 1

Answered

i have number i need save only integer without any point or 'e'

I am not certain what you want to do. To change the way the numbers are displayed, change the format options to display the n...

i have number i need save only integer without any point or 'e'

I am not certain what you want to do. To change the way the numbers are displayed, change the format options to display the n...

alrededor de 18 horas ago | 1

Answered

How can I find the baseline of signal?

See if the min function will do what you want. If you want to plot a horizontal line indicating the minimum, and if ‘y’ is ...

How can I find the baseline of signal?

See if the min function will do what you want. If you want to plot a horizontal line indicating the minimum, and if ‘y’ is ...

1 día ago | 0

Answered

How to shade the area between two mirror curves using patch?

I am not certain how ‘C_1’ and ‘C_2’ were created, however this is one approach to filling the space between them (creating them...

How to shade the area between two mirror curves using patch?

I am not certain how ‘C_1’ and ‘C_2’ were created, however this is one approach to filling the space between them (creating them...

1 día ago | 1

| accepted

Answered

runge-Kutta problem command ode45

I have no idea what you want to do, or what ‘x’ and ‘y’ are. This will get you closer to an actual result: tspan = [0 5]; ...

runge-Kutta problem command ode45

I have no idea what you want to do, or what ‘x’ and ‘y’ are. This will get you closer to an actual result: tspan = [0 5]; ...

1 día ago | 0

| accepted

Answered

lsqcurvefit: Local minimum possible... but clearly visible minima

If you have the Global Optimisation Toolbox, many of those functions (ga is my favourite) will search the entire parameter space...

lsqcurvefit: Local minimum possible... but clearly visible minima

If you have the Global Optimisation Toolbox, many of those functions (ga is my favourite) will search the entire parameter space...

1 día ago | 1

Answered

Using OR between elements in vector or antithesis of any(x)

Not certain what you wnat. Try these (the any call is there for comparison only): x = randi([-5 5], 1, 10); TF1 = any(x ==...

Using OR between elements in vector or antithesis of any(x)

Not certain what you wnat. Try these (the any call is there for comparison only): x = randi([-5 5], 1, 10); TF1 = any(x ==...

1 día ago | 0

Answered

Obtaining line equation having multiple points

The polyfit (and polyval) functions may be what you want. There are other options, however these are likely the easiest to us...

Obtaining line equation having multiple points

The polyfit (and polyval) functions may be what you want. There are other options, however these are likely the easiest to us...

2 días ago | 0

Answered

how to fix the error ''Conversion to function_handle from double is not possible.'' for the below 3Eq euler matlab code

First, name the variables slightly differently from the function names, second define the initial conditions to conform with tho...

how to fix the error ''Conversion to function_handle from double is not possible.'' for the below 3Eq euler matlab code

First, name the variables slightly differently from the function names, second define the initial conditions to conform with tho...

3 días ago | 1

| accepted

Answered

how to color in between curves the two graphs?

It’s not possible to run images of code, especially images of incomplete code. Try this example: x1 = linspace(-0.1, -10, 3...

how to color in between curves the two graphs?

It’s not possible to run images of code, especially images of incomplete code. Try this example: x1 = linspace(-0.1, -10, 3...

3 días ago | 0

Answered

Show numbers with Grouped Bars

Try this: x = [98 96; 142 52; 42 42]; hBar = bar(x); for k1 = 1:size(x,2) ctr(k1,:) = bsxfun(@plus, 1:numel(hBar(k1).XD...

Show numbers with Grouped Bars

Try this: x = [98 96; 142 52; 42 42]; hBar = bar(x); for k1 = 1:size(x,2) ctr(k1,:) = bsxfun(@plus, 1:numel(hBar(k1).XD...

3 días ago | 0

| accepted

Answered

How to fit this curve?

The best model is the mathematical expression of the process that created those data. A power law fit appears to provide a re...

How to fit this curve?

The best model is the mathematical expression of the process that created those data. A power law fit appears to provide a re...

3 días ago | 1

| accepted

Answered

Import text files with extensions other than .txt

Use detectImportOptions to tell readtable to read the file as a text file. One recent example from an earlier Answer: opts ...

Import text files with extensions other than .txt

Use detectImportOptions to tell readtable to read the file as a text file. One recent example from an earlier Answer: opts ...

3 días ago | 1

| accepted

Answered

± use in MATLAB

One option: CL = [(0.331+0.008) + (0.15+0.002)*ALPHA (0.331-0.008) + (0.15-0.002)*ALPHA]; Experiment to get differen...

± use in MATLAB

One option: CL = [(0.331+0.008) + (0.15+0.002)*ALPHA (0.331-0.008) + (0.15-0.002)*ALPHA]; Experiment to get differen...

3 días ago | 0

Answered

when i plot my figure doesnt show line

Use a colon to create the vectors instead of a semicolon, and be sure the vectors are equal length: x = 1:5; y = 5:9; plot...

when i plot my figure doesnt show line

Use a colon to create the vectors instead of a semicolon, and be sure the vectors are equal length: x = 1:5; y = 5:9; plot...

3 días ago | 0

Answered

How to create a Symbolic vector

Try this:: n = inputdlg('Enter the length of the vector (integer): '); n = str2double(n); syms x x = sym('x',[1 n]) pro...

How to create a Symbolic vector

Try this:: n = inputdlg('Enter the length of the vector (integer): '); n = str2double(n); syms x x = sym('x',[1 n]) pro...

4 días ago | 0

Answered

1D interpolation by y = ax+b

To set the start point at the origin (0,0), calculate the slope as: slope = x(:) \ y(:); for example: x = 0:0.1:10; y = ra...

1D interpolation by y = ax+b

To set the start point at the origin (0,0), calculate the slope as: slope = x(:) \ y(:); for example: x = 0:0.1:10; y = ra...

4 días ago | 0

Answered

A little question of [] and for loop

The full code should actually be: A = []; for i=1:50 A=[A i]; end It works by concatenating the value of ‘i’ to existi...

A little question of [] and for loop

The full code should actually be: A = []; for i=1:50 A=[A i]; end It works by concatenating the value of ‘i’ to existi...

4 días ago | 1

Answered

Plot surface from non-anonymus function

See if this does what you want — function z = test(w) x = w{1}; y = w{2}; z = 2*x.^2 + 2*y.^2 +10*(1.1*y.^2 +...

Plot surface from non-anonymus function

See if this does what you want — function z = test(w) x = w{1}; y = w{2}; z = 2*x.^2 + 2*y.^2 +10*(1.1*y.^2 +...

4 días ago | 0

| accepted

Answered

detrending timeseries by removing the linear function fitted by samples?

Considering that the objective is to remove a linear trend, perhaps the easiest way would be: t = 11:22; p = polyfit(x(t),tac...

detrending timeseries by removing the linear function fitted by samples?

Considering that the objective is to remove a linear trend, perhaps the easiest way would be: t = 11:22; p = polyfit(x(t),tac...

4 días ago | 0

| accepted

Answered

Find peak and plot graph from peak

I am not certain what you want to do. If you want to get the peaks and their indices, request those outputs: [pks,locs] = f...

Find peak and plot graph from peak

I am not certain what you want to do. If you want to get the peaks and their indices, request those outputs: [pks,locs] = f...

4 días ago | 0

| accepted

Answered

How can I define a gradient function that can update k values after each iteration to optimize parameters in ODEs?

One option is the approach in Parameter Estimation for a System of Differential Equations. You will need to modify the ‘kinetic...

How can I define a gradient function that can update k values after each iteration to optimize parameters in ODEs?

One option is the approach in Parameter Estimation for a System of Differential Equations. You will need to modify the ‘kinetic...

5 días ago | 0

Answered

How to draw bar graph of different colors ?

Try this: y = [280 260 240]; figure c = bar(y); set(gca, 'XTickLabel',{'CS0','CS10','CS20'}) xlabel('Wt% of cenospheres'...

How to draw bar graph of different colors ?

Try this: y = [280 260 240]; figure c = bar(y); set(gca, 'XTickLabel',{'CS0','CS10','CS20'}) xlabel('Wt% of cenospheres'...

5 días ago | 1

| accepted

Answered

Problem to get the right format of a Surf Plot

It looks as though ‘X’ is not sorted. Without the data a guess would be this possible solution: BB = sortrows (BB,1); See th...

Problem to get the right format of a Surf Plot

It looks as though ‘X’ is not sorted. Without the data a guess would be this possible solution: BB = sortrows (BB,1); See th...

5 días ago | 0

| accepted