12.299 total contributions since 2012

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 can replace randi instead randint?

The appropriate Release Notes for R2016b says simply: ‘Replace all instances of randint with randi.’ According to this Answ...

how can replace randi instead randint?

The appropriate Release Notes for R2016b says simply: ‘Replace all instances of randint with randi.’ According to this Answ...

etwa eine Stunde ago | 0

Answered

How do I fix this error? Not enough input arguments.

Your ‘a_p’ function has no idea what ‘a2’ and ‘b2’ are because you have not shared those with them. Try this: function valu...

How do I fix this error? Not enough input arguments.

Your ‘a_p’ function has no idea what ‘a2’ and ‘b2’ are because you have not shared those with them. Try this: function valu...

etwa 4 Stunden ago | 0

| accepted

Answered

matlab plot, interrupted line when y is zero

Try this, using your own ‘x’ and ‘y’ vectors: x = 0:10; % Create Data y = randi([0 5], 1, 1...

matlab plot, interrupted line when y is zero

Try this, using your own ‘x’ and ‘y’ vectors: x = 0:10; % Create Data y = randi([0 5], 1, 1...

etwa 5 Stunden ago | 0

Answered

How to draw an "error bar" between two points on a scatter plot

Without knowing what ‘(x1, y1) and (x2, y2)’ are, or what you want to plot, note that it is not necessary to draw lines with the...

How to draw an "error bar" between two points on a scatter plot

Without knowing what ‘(x1, y1) and (x2, y2)’ are, or what you want to plot, note that it is not necessary to draw lines with the...

etwa 6 Stunden ago | 0

Answered

MATLAB R2019a plot function is not working

It would be helpful to knnow what ‘not working’ means. That aside, to be sure you do not have a variable named ‘plot’, run th...

MATLAB R2019a plot function is not working

It would be helpful to knnow what ‘not working’ means. That aside, to be sure you do not have a variable named ‘plot’, run th...

etwa 7 Stunden ago | 0

Answered

Sorting a table in Matlab

You can sort the table variables (columns) with the varfun function. Example: strs = char(randi([double('A'), double('z')], 1...

Sorting a table in Matlab

You can sort the table variables (columns) with the varfun function. Example: strs = char(randi([double('A'), double('z')], 1...

etwa 12 Stunden ago | 0

Answered

how to divide digital sequence into frames at timely basis

The Signal Processing Toolbox buffer function is an option. Choose the parameters depending on your sampling interval.

how to divide digital sequence into frames at timely basis

The Signal Processing Toolbox buffer function is an option. Choose the parameters depending on your sampling interval.

etwa 12 Stunden ago | 0

Answered

Error in model function using fitnlm

Your model function arguments are reversed from what they should be. In all MATLAB objective functions for fitnlm, lsqcurvefit,...

Error in model function using fitnlm

Your model function arguments are reversed from what they should be. In all MATLAB objective functions for fitnlm, lsqcurvefit,...

etwa 15 Stunden ago | 0

Answered

How to solve this system of ODEs

Another approach begins with using the Symbolic Math Toolbox to create functions for your equations: syms a b c d k x(t) y(t) ...

How to solve this system of ODEs

Another approach begins with using the Symbolic Math Toolbox to create functions for your equations: syms a b c d k x(t) y(t) ...

ein Tag ago | 0

Answered

how can I plot a unit step function?

The unit step function is also knoiwn as the heaviside step function.

how can I plot a unit step function?

The unit step function is also knoiwn as the heaviside step function.

ein Tag ago | 0

| accepted

Answered

Why it doesn’t work out?

It means you also need the Wavelet Toolbox.

Why it doesn’t work out?

It means you also need the Wavelet Toolbox.

ein Tag ago | 0

| accepted

Answered

How do you chop a number to a specified number of significant digits, not round

The print functions (such as sprintf and fprintf) round the result, so it is necessary to create more than the necessary number ...

How do you chop a number to a specified number of significant digits, not round

The print functions (such as sprintf and fprintf) round the result, so it is necessary to create more than the necessary number ...

2 Tage ago | 0

Answered

How to generate a set of variables with increasing numbers related to the indices of another array?

You can do that more easily with simple matrix-vector multiplication: z = y(:)*x producing: z = 1 1 1 2...

How to generate a set of variables with increasing numbers related to the indices of another array?

You can do that more easily with simple matrix-vector multiplication: z = y(:)*x producing: z = 1 1 1 2...

2 Tage ago | 0

| accepted

Answered

how to multiply values between arrays columns to rows and generate a new vector form each of the multiplication?

The operation you are looking for is not actually multiplication, it is convolution. Example: x = [ 1 1 1 ]; y = [ 1 2 3 ]...

how to multiply values between arrays columns to rows and generate a new vector form each of the multiplication?

The operation you are looking for is not actually multiplication, it is convolution. Example: x = [ 1 1 1 ]; y = [ 1 2 3 ]...

2 Tage ago | 0

| accepted

Answered

writeTable won't take my parameters

The error was with table, not writetable. You are not creating the table correctly. Try this: titles={'the' 'hungry' 'dog'...

writeTable won't take my parameters

The error was with table, not writetable. You are not creating the table correctly. Try this: titles={'the' 'hungry' 'dog'...

2 Tage ago | 0

Answered

I need turnover for last month from my table

Try this: dv = datetime({'01-Jul-2019 17:00:39'; '24-Jul-2019 14:00:18'; '01-Aug-2019 16:00:35'; '15-Aug-2019 15:40:24'; '21-A...

I need turnover for last month from my table

Try this: dv = datetime({'01-Jul-2019 17:00:39'; '24-Jul-2019 14:00:18'; '01-Aug-2019 16:00:35'; '15-Aug-2019 15:40:24'; '21-A...

2 Tage ago | 1

| accepted

Answered

3d plot help

The description ‘Time at x-axis , cost at y-axis and Profit = revenue - cost at y-axis’ describes a 2D plot. Try this: D = ...

3d plot help

The description ‘Time at x-axis , cost at y-axis and Profit = revenue - cost at y-axis’ describes a 2D plot. Try this: D = ...

2 Tage ago | 1

| accepted

Answered

How can i find the intersection of two lines between points? One of the lines isnt well behaved

Try this: x = linspace(0, 1, 40); % Create Data y1 = 1.0592*ones(size(x)); ...

How can i find the intersection of two lines between points? One of the lines isnt well behaved

Try this: x = linspace(0, 1, 40); % Create Data y1 = 1.0592*ones(size(x)); ...

3 Tage ago | 1

| accepted

Answered

Plotting multiple piecewise functions onto the same graph

I coded and ran ‘y1’ as: y1 = @(x) ((0<x) & (x<1.85)).*sin(523.26*pi*x) + ((1.85<x) & (x<3.7)).*0 + ((3.7<x) & (x<5.55)).*sin(...

Plotting multiple piecewise functions onto the same graph

I coded and ran ‘y1’ as: y1 = @(x) ((0<x) & (x<1.85)).*sin(523.26*pi*x) + ((1.85<x) & (x<3.7)).*0 + ((3.7<x) & (x<5.55)).*sin(...

3 Tage ago | 0

Answered

X axis is not displaying final value

We don’t have ‘t’ (or anything else). EDIT — Note that: q = 0:15:115; only goes out to 105, not to 115. The next valu...

X axis is not displaying final value

We don’t have ‘t’ (or anything else). EDIT — Note that: q = 0:15:115; only goes out to 105, not to 115. The next valu...

3 Tage ago | 0

Answered

How to write a legend in latex format

Try this: Npc=2; legend(sprintf('\\Sigma_{i=1}^{%d} x^\\prime_i',Npc),'Total L_w','Noise'); That worked correctly when I tes...

How to write a legend in latex format

Try this: Npc=2; legend(sprintf('\\Sigma_{i=1}^{%d} x^\\prime_i',Npc),'Total L_w','Noise'); That worked correctly when I tes...

3 Tage ago | 2

| accepted

Answered

How to combine fill figures?

It depends on what you want to do. Guessing here that the hold function might be what you want.

How to combine fill figures?

It depends on what you want to do. Guessing here that the hold function might be what you want.

3 Tage ago | 0

Answered

Saving Data In A For Loop Into An Array

The easiest way would probably be to save them all in separate cell arrays, here ‘xc’, ‘yc’, and ‘zc’: for columns=1:4 fo...

Saving Data In A For Loop Into An Array

The easiest way would probably be to save them all in separate cell arrays, here ‘xc’, ‘yc’, and ‘zc’: for columns=1:4 fo...

4 Tage ago | 1

| accepted

Answered

Index a series of integers in a column of matrix

I am not sure what you want. Try this: T2 = [2 7 4 5 1 0 1 3 1 5 6 7 4 7 2 7]'; Idx = strfind(T2', [2 7]) Out = T2([Idx(:...

Index a series of integers in a column of matrix

I am not sure what you want. Try this: T2 = [2 7 4 5 1 0 1 3 1 5 6 7 4 7 2 7]'; Idx = strfind(T2', [2 7]) Out = T2([Idx(:...

4 Tage ago | 0

| accepted

Answered

How can I convert (x,y) points(double) into cell

If yu want to store them individually as cells, the num2cell function will work. Otherwise see if the mat2cell function will ...

How can I convert (x,y) points(double) into cell

If yu want to store them individually as cells, the num2cell function will work. Otherwise see if the mat2cell function will ...

4 Tage ago | 0

| accepted

Answered

find the element location

You have encountered ‘floating-point approximation error’. Most numbers are not exactly represented in floating-point precision...

find the element location

You have encountered ‘floating-point approximation error’. Most numbers are not exactly represented in floating-point precision...

4 Tage ago | 1

| accepted

Answered

importing excel data using for loop

This variation on your loop will generate the names that you can then use for your readtable calls: for kk=1:24 fv = sp...

importing excel data using for loop

This variation on your loop will generate the names that you can then use for your readtable calls: for kk=1:24 fv = sp...

4 Tage ago | 0

| accepted

Answered

how can i plot ?

Try this: A=[2.8866 2.5708 2.9381 2.6234 2.7873 2.8535 3.5818 4.1817 3.6535 4.6312 4.2028 4.4...

how can i plot ?

Try this: A=[2.8866 2.5708 2.9381 2.6234 2.7873 2.8535 3.5818 4.1817 3.6535 4.6312 4.2028 4.4...

5 Tage ago | 0

| accepted

Answered

Plotting FRF with imaginary and real numbers

‘I would like to know if it is possible to plot the graphic of it (resulting in the natural frequencies and stuff) only having t...

Plotting FRF with imaginary and real numbers

‘I would like to know if it is possible to plot the graphic of it (resulting in the natural frequencies and stuff) only having t...

5 Tage ago | 0

Answered

parameter estimation for a set of differential equations using fmincon function in matlab

You will likely find Monod kinetics and curve fitting helpful. (There are similar posts as well.) One way to force ‘dcdt’ to...

parameter estimation for a set of differential equations using fmincon function in matlab

You will likely find Monod kinetics and curve fitting helpful. (There are similar posts as well.) One way to force ‘dcdt’ to...

6 Tage ago | 0