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

Find the gradient using matlab code

You can do exactly what you want in either base MATLAB or using the Symbolic Math Toolbox. Please search the documentation us...

Find the gradient using matlab code

You can do exactly what you want in either base MATLAB or using the Symbolic Math Toolbox. Please search the documentation us...

ungefär 2 timmar ago | 0

Answered

How to set the grid of the right yyaxis?

Another option is to create new right-axis tick positions to match the tick positions on the left: x1=[200, 300, 250, 520, 340...

How to set the grid of the right yyaxis?

Another option is to create new right-axis tick positions to match the tick positions on the left: x1=[200, 300, 250, 520, 340...

ungefär 2 timmar ago | 0

| accepted

Answered

Concatenate signals ( sine wave and a line )

You are attempthing to vertically concatenate them. Use commas (,) instead fo semicolons(;) and it will work. Commas horizon...

Concatenate signals ( sine wave and a line )

You are attempthing to vertically concatenate them. Use commas (,) instead fo semicolons(;) and it will work. Commas horizon...

ungefär 4 timmar ago | 1

Answered

Zone identification on curve

Try this: D = load('identification.mat'); var = D.var; x = 0:numel(var)-1; varfilt = sgolayfilt(var, 5, 271); Lmx = ...

Zone identification on curve

Try this: D = load('identification.mat'); var = D.var; x = 0:numel(var)-1; varfilt = sgolayfilt(var, 5, 271); Lmx = ...

ungefär 5 timmar ago | 2

| accepted

Answered

Waveform Segmentation Using Deep Learning: Error on getmask

See if clicking on the Help radio buttion in the upper right corner of the MATLAB window, then scrolling down to Signal Processi...

Waveform Segmentation Using Deep Learning: Error on getmask

See if clicking on the Help radio buttion in the upper right corner of the MATLAB window, then scrolling down to Signal Processi...

ungefär 16 timmar ago | 0

Answered

How to use custom X values for the findchangepts function?

The findchangepts function outputs the change points as a vector of integer indices. To put them in the context of your data,...

How to use custom X values for the findchangepts function?

The findchangepts function outputs the change points as a vector of integer indices. To put them in the context of your data,...

ungefär 20 timmar ago | 0

Answered

How do I pick specific rows of a txt file and plot data?

Try this: D1 = readmatrix('collagen405.txt', 'HeaderLines',14); x = D1(:,1); y = D1(:,2); figure plot(x, y) grid title...

How do I pick specific rows of a txt file and plot data?

Try this: D1 = readmatrix('collagen405.txt', 'HeaderLines',14); x = D1(:,1); y = D1(:,2); figure plot(x, y) grid title...

ungefär 21 timmar ago | 0

Answered

ODE45 must return column vector

Try this: I=[80,131,189,270,320,407,450,530,620,686,740,900,1095]; t2=[74,29,21,12,8,5.7,4.4,3.6,2.1,1.8,1.5,1.0,0.7]; a=....

ODE45 must return column vector

Try this: I=[80,131,189,270,320,407,450,530,620,686,740,900,1095]; t2=[74,29,21,12,8,5.7,4.4,3.6,2.1,1.8,1.5,1.0,0.7]; a=....

ungefär 22 timmar ago | 0

| accepted

Answered

How to plot timeseries graph

For the data posted, one approach: T1 = readtable('mar2014ctd.xlsx', 'VariableNamingRule','preserve'); VarNames = T1.Properti...

How to plot timeseries graph

For the data posted, one approach: T1 = readtable('mar2014ctd.xlsx', 'VariableNamingRule','preserve'); VarNames = T1.Properti...

en dag ago | 0

Answered

Plotting a 3D surface model with colours from excel

I am not certain what result you want. One option: T1 = readtable('dagslysdata.xlsx', 'HeaderLines',3); Xv = linspace(min(...

Plotting a 3D surface model with colours from excel

I am not certain what result you want. One option: T1 = readtable('dagslysdata.xlsx', 'HeaderLines',3); Xv = linspace(min(...

en dag ago | 0

Answered

I'm trying to plot this equation, if anyone can help

Take the square root of both sides, and plot: y = +sqrt(4*a*x); y = -sqrt(4*a*x); That’s how I would do it, anyway.

I'm trying to plot this equation, if anyone can help

Take the square root of both sides, and plot: y = +sqrt(4*a*x); y = -sqrt(4*a*x); That’s how I would do it, anyway.

2 dagar ago | 0

Answered

Compass of complex matrix, getting "dot indexing is not supported for variables of this type."

See if this does what you want: c = compass (SOUSLEDNA); c1 = c(1); c1.LineWidth = 2; c1.Color = 'r'; .

Compass of complex matrix, getting "dot indexing is not supported for variables of this type."

See if this does what you want: c = compass (SOUSLEDNA); c1 = c(1); c1.LineWidth = 2; c1.Color = 'r'; .

2 dagar ago | 1

| accepted

Answered

Boundary line for contour

Sometimes, a bit of absolute creativity (‘thinking outside the contour) is necessary. I first did a meshc plot of your matric...

Boundary line for contour

Sometimes, a bit of absolute creativity (‘thinking outside the contour) is necessary. I first did a meshc plot of your matric...

2 dagar ago | 1

| accepted

Answered

ODE45; Length of initial conditions vector not accepted

See if this does what you want: function ddx = odefcn(t,v,W,k,rho,S,R,m,P,c_Do) A_0 = (4.654*W*cos(t)*k)/(rho*S) - W*sin(...

ODE45; Length of initial conditions vector not accepted

See if this does what you want: function ddx = odefcn(t,v,W,k,rho,S,R,m,P,c_Do) A_0 = (4.654*W*cos(t)*k)/(rho*S) - W*sin(...

2 dagar ago | 0

| accepted

Answered

Problems using a Butterworth filter instead of a bandstop to filter frequencies.

You are not designing the filter correctly. Try this instead: lfreq = 170; ...

Problems using a Butterworth filter instead of a bandstop to filter frequencies.

You are not designing the filter correctly. Try this instead: lfreq = 170; ...

2 dagar ago | 0

| accepted

Answered

How to put a numerical value inside a Bar graph?

Change the text call to: text(1:length(Y),Y/2,num2str(Y'),'vert','bottom','horiz','center'); % values position That should w...

How to put a numerical value inside a Bar graph?

Change the text call to: text(1:length(Y),Y/2,num2str(Y'),'vert','bottom','horiz','center'); % values position That should w...

2 dagar ago | 0

| accepted

Answered

How would I simulate this in Matlab?

I would approach it as a compartmental modeling problem. Plants grow at a specific rate, however some will die (for whatever ...

How would I simulate this in Matlab?

I would approach it as a compartmental modeling problem. Plants grow at a specific rate, however some will die (for whatever ...

3 dagar ago | 0

Answered

How do I produce graphs from 'for' loop?

Use the hold function. figure hold on <LOOP> hold off If you are plotting single points in each loop iteration (not possi...

How do I produce graphs from 'for' loop?

Use the hold function. figure hold on <LOOP> hold off If you are plotting single points in each loop iteration (not possi...

3 dagar ago | 0

| accepted

Answered

tf2ss not returning the correct State Space form

The result is correct. The exact configuration doesn’t matter, so long as all the matrices and vectors work together (and produ...

tf2ss not returning the correct State Space form

The result is correct. The exact configuration doesn’t matter, so long as all the matrices and vectors work together (and produ...

3 dagar ago | 0

| accepted

Answered

How do I generate a polynomial from roots that are repeated?

Iinteresting. I would expect no repeats, and complex conjugate values instead. Try this: rts = [ -0.7437 - 1.4178i ...

How do I generate a polynomial from roots that are repeated?

Iinteresting. I would expect no repeats, and complex conjugate values instead. Try this: rts = [ -0.7437 - 1.4178i ...

3 dagar ago | 0

| accepted

Answered

add standard deviation value and text on bars

When I try to run your code, I get: Unrecognized function or variable 'X'. In its absence, try this: Y=[0.9 0.83 0.700;1.58...

add standard deviation value and text on bars

When I try to run your code, I get: Unrecognized function or variable 'X'. In its absence, try this: Y=[0.9 0.83 0.700;1.58...

3 dagar ago | 1

Answered

ODE symbolic result plotting with fplot()

I am not certain what the problem is with the original function. If you simplify it first: phi = vpa(simplify(phi, 'Steps',...

ODE symbolic result plotting with fplot()

I am not certain what the problem is with the original function. If you simplify it first: phi = vpa(simplify(phi, 'Steps',...

3 dagar ago | 0

| accepted

Answered

solve 3 order differential equations

Without seeing your ODE solver call, I cannot determine what the problem is. This runs without error for me (in R2020b): ...

solve 3 order differential equations

Without seeing your ODE solver call, I cannot determine what the problem is. This runs without error for me (in R2020b): ...

3 dagar ago | 0

Answered

How can I mark wheezes on a plot?

Try something like this: wheezes = sort(randi(100, 10, 1)); % Create Data ws...

How can I mark wheezes on a plot?

Try something like this: wheezes = sort(randi(100, 10, 1)); % Create Data ws...

4 dagar ago | 1

Answered

Fprintf modification in matlab

Those are all preferences. See the Fonts section. There is no other way (to my knowledge) to change them. Also, I poste...

Fprintf modification in matlab

Those are all preferences. See the Fonts section. There is no other way (to my knowledge) to change them. Also, I poste...

4 dagar ago | 0

Answered

Need help.... How to plot sequences

The mod function and the colon,: operator are your friends!

Need help.... How to plot sequences

The mod function and the colon,: operator are your friends!

4 dagar ago | 0

| accepted

Answered

sampling time causes scaling of simulation results.

It may be appropriate to specify the the sampling time in the ss call. See Create Discrete-Time State-Space Model. Another p...

sampling time causes scaling of simulation results.

It may be appropriate to specify the the sampling time in the ss call. See Create Discrete-Time State-Space Model. Another p...

4 dagar ago | 0

Answered

How can we do for following fprintf formating

Try this: fprintf('\tx%c\n', char(178)) producinig: x² .

How can we do for following fprintf formating

Try this: fprintf('\tx%c\n', char(178)) producinig: x² .

4 dagar ago | 0

| accepted

Answered

How to plot point clouds and linear regression line in the same plot?

Use the hold function.

How to plot point clouds and linear regression line in the same plot?

Use the hold function.

5 dagar ago | 0

Answered

How to Solve an Equation with an Integral for the Integral Range Parameter?

The gammainc function does not take complex arguments, so this is likely the best you can hope for: F = @(S) S - 0.01 * gammai...

How to Solve an Equation with an Integral for the Integral Range Parameter?

The gammainc function does not take complex arguments, so this is likely the best you can hope for: F = @(S) S - 0.01 * gammai...

5 dagar ago | 0

| accepted