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 I to convert a cell to a double without losing the leading zeros?

Thank you for quoting my code from Extracting numbers from mixed string ! It is not possible to retain leading zeros in a num...

How can I to convert a cell to a double without losing the leading zeros?

Thank you for quoting my code from Extracting numbers from mixed string ! It is not possible to retain leading zeros in a num...

environ 8 heures ago | 0

Answered

Extracting numbers from mixed string

Another approach: str = 'preci_CZ_02000_20200101_0000.txt'; out = regexp(str, '(?:\d{4})\>','match'); producing: out = ...

Extracting numbers from mixed string

Another approach: str = 'preci_CZ_02000_20200101_0000.txt'; out = regexp(str, '(?:\d{4})\>','match'); producing: out = ...

environ 9 heures ago | 0

Answered

How can I plot two datasets together if they have different x axis values?

The ‘data.mat’ file contains data for only one day as datenum values, that apparently are all for 01-Jan-2020. One approach: ...

How can I plot two datasets together if they have different x axis values?

The ‘data.mat’ file contains data for only one day as datenum values, that apparently are all for 01-Jan-2020. One approach: ...

environ 10 heures ago | 0

Answered

Highlight Specific Portion of Graph

I am not ccertain what you want to highlight, since that region is vanishingly small. Try this: %Emissive Power wl=10e-2:0...

Highlight Specific Portion of Graph

I am not ccertain what you want to highlight, since that region is vanishingly small. Try this: %Emissive Power wl=10e-2:0...

environ 15 heures ago | 0

| accepted

Answered

Why do I get these errors in Toolbox package? Help me out

There appears to be a script called ‘nargout.m’. The easiest way to find it is to run: which nargout -all in a script or t...

Why do I get these errors in Toolbox package? Help me out

There appears to be a script called ‘nargout.m’. The easiest way to find it is to run: which nargout -all in a script or t...

environ 19 heures ago | 0

Answered

I want to sketch the parametric euqations lies on the cone, but the cone is so small and the lines are sparser than it should be.

Scale the size of the cone up by multiplying its variables with some appropriate constant (that I call a ‘Magnification Factor’ ...

I want to sketch the parametric euqations lies on the cone, but the cone is so small and the lines are sparser than it should be.

Scale the size of the cone up by multiplying its variables with some appropriate constant (that I call a ‘Magnification Factor’ ...

environ 20 heures ago | 0

| accepted

Answered

Getting a function I downloaded online to run

First, use dir on the folder to be certain it actually appears there. Second, see what: which('intpartition.m') returns. ...

Getting a function I downloaded online to run

First, use dir on the folder to be certain it actually appears there. Second, see what: which('intpartition.m') returns. ...

environ 22 heures ago | 0

Answered

How to apply bandpass filter to a single data type?

Yes. You can use single. See the documentation section for x . This specifically refers to the Signal Processing Toolbox b...

How to apply bandpass filter to a single data type?

Yes. You can use single. See the documentation section for x . This specifically refers to the Signal Processing Toolbox b...

environ 23 heures ago | 0

| accepted

Answered

glmfit not working: US's chances of recession

Use glmval to evaluate the result of the fit: T1 = readtable('USREC.xls'); ind = T1.ind; us2y10 = T1.us2y10; rec = T1.rec; ...

glmfit not working: US's chances of recession

Use glmval to evaluate the result of the fit: T1 = readtable('USREC.xls'); ind = T1.ind; us2y10 = T1.us2y10; rec = T1.rec; ...

1 jour ago | 0

| accepted

Answered

How can I get peaks values and distance between them indicated in the figure?

The findpeaks function could possible do what you want.

How can I get peaks values and distance between them indicated in the figure?

The findpeaks function could possible do what you want.

1 jour ago | 0

Answered

Why won't this plot?

The problem are the y-axis limits in the axis call. Comment-out the axis call (as I do here) and you will immediately see the...

Why won't this plot?

The problem are the y-axis limits in the axis call. Comment-out the axis call (as I do here) and you will immediately see the...

1 jour ago | 0

| accepted

Answered

Convert data plot from Cartesian to spherical coordinates

See if the cart2sph function will do what you want.

Convert data plot from Cartesian to spherical coordinates

See if the cart2sph function will do what you want.

1 jour ago | 0

Answered

Even binned histogram to uneven bins?

If you are using the histogram function, you can specify the bind widths using the edges option. See Specify Bin Edges of Histo...

Even binned histogram to uneven bins?

If you are using the histogram function, you can specify the bind widths using the edges option. See Specify Bin Edges of Histo...

1 jour ago | 0

Answered

How do I troubleshoot if a plot line doesn't show up on a figure

It plots a horizontal dotted line at 55 from 0 to 7. If it works independently, then there are several possibilities, some of...

How do I troubleshoot if a plot line doesn't show up on a figure

It plots a horizontal dotted line at 55 from 0 to 7. If it works independently, then there are several possibilities, some of...

2 jours ago | 0

| accepted

Answered

How to make while loop faster ?

First, the number of iterations is going to be: n_iter = 1/D_1 evaluating to: n_iter = 6.666666666666667e+12 That is...

How to make while loop faster ?

First, the number of iterations is going to be: n_iter = 1/D_1 evaluating to: n_iter = 6.666666666666667e+12 That is...

2 jours ago | 0

Answered

Genetic Algorithm: undefined function or method for input arguments of type' double '.

The fitness function needs to accept arguments, and (in general) needs to return a scalar result. That will likely require that...

Genetic Algorithm: undefined function or method for input arguments of type' double '.

The fitness function needs to accept arguments, and (in general) needs to return a scalar result. That will likely require that...

2 jours ago | 0

Answered

How to make a plot from for loop where the results are a 3x1 matrix?

Try this slight variation on your code: s=300; r=25; k=30; kukat=[s;r;k]; A=[0.23 0 233;0.74 0.52 0;0 0.35 0.46]; a=15; ...

How to make a plot from for loop where the results are a 3x1 matrix?

Try this slight variation on your code: s=300; r=25; k=30; kukat=[s;r;k]; A=[0.23 0 233;0.74 0.52 0;0 0.35 0.46]; a=15; ...

2 jours ago | 0

| accepted

Answered

Finding different length pulses

Note that ‘clean them up’ is ever so slightly ambiguous. Assuming that the objective is to remove some of what might be consi...

Finding different length pulses

Note that ‘clean them up’ is ever so slightly ambiguous. Assuming that the objective is to remove some of what might be consi...

2 jours ago | 0

Answered

Building Low-pass filter with Sinc function

I am not exactly certain what the problem is from a theoretical prespective (I will leave it to you to explore that), however th...

Building Low-pass filter with Sinc function

I am not exactly certain what the problem is from a theoretical prespective (I will leave it to you to explore that), however th...

2 jours ago | 0

| accepted

Answered

Why didn't I get an error for my matrices?

You are seeing ‘Automatic Implicit Expansion’ introduced in R2016b (much to the consternation of many of us). Previously, the o...

Why didn't I get an error for my matrices?

You are seeing ‘Automatic Implicit Expansion’ introduced in R2016b (much to the consternation of many of us). Previously, the o...

2 jours ago | 0

Answered

How do you plot the phase and amplitude of a complex function?

to calculate the amplitude, use the abs function. For the phase, use the angle function.

How do you plot the phase and amplitude of a complex function?

to calculate the amplitude, use the abs function. For the phase, use the angle function.

2 jours ago | 1

Answered

How to plot spectral density given a column of data?

My guess is that there is a significant d-c (constant) offfset. This is the mean of ‘x’, and will show up as the amplitude at ...

How to plot spectral density given a column of data?

My guess is that there is a significant d-c (constant) offfset. This is the mean of ‘x’, and will show up as the amplitude at ...

3 jours ago | 1

Answered

Issues with entering into MATLAB

This sems to be homework. Vectorise the expoinentiation: y= (2*x.^1.01)+ sin(3*pi/2 *x)-10*cos(x)-3; ↑ ← HERE Th...

Issues with entering into MATLAB

This sems to be homework. Vectorise the expoinentiation: y= (2*x.^1.01)+ sin(3*pi/2 *x)-10*cos(x)-3; ↑ ← HERE Th...

3 jours ago | 0

| accepted

Answered

How to solve ODEs with time dependent parameters by ode45 method

I do not see any interp1 calls in the code you posted. To use a function in a calculation, the function needs to be evaluated...

How to solve ODEs with time dependent parameters by ode45 method

I do not see any interp1 calls in the code you posted. To use a function in a calculation, the function needs to be evaluated...

3 jours ago | 0

| accepted

Answered

How to read a list of strings in a txt file?

Unless I am missing something, ‘KKK’ is never incremented inside the while loop, so it will in fact be infinite. If you are a...

How to read a list of strings in a txt file?

Unless I am missing something, ‘KKK’ is never incremented inside the while loop, so it will in fact be infinite. If you are a...

3 jours ago | 0

| accepted

Answered

How can i work with a matrix that present floating points

If you want the (x,y) data for that contour, you need to ask contour to give it to you: c1000 = contour(x,y,bat_N,[-1000],'Sho...

How can i work with a matrix that present floating points

If you want the (x,y) data for that contour, you need to ask contour to give it to you: c1000 = contour(x,y,bat_N,[-1000],'Sho...

3 jours ago | 0

Answered

How to find a Y value of a given X?

This is easiest if you create ‘v’ as an anonymous function: t = 0:0.00001:0.01; v = @(t) 50*exp(-1600*t) - 50*exp(-400*t); ...

How to find a Y value of a given X?

This is easiest if you create ‘v’ as an anonymous function: t = 0:0.00001:0.01; v = @(t) 50*exp(-1600*t) - 50*exp(-400*t); ...

3 jours ago | 0

Answered

MATLAB R2020a not running

See if the solution in: Why will MATLAB not start up properly on my Windows based system? will work. (It worked when I had a si...

MATLAB R2020a not running

See if the solution in: Why will MATLAB not start up properly on my Windows based system? will work. (It worked when I had a si...

3 jours ago | 0

Answered

How to make a square wave with a pulse

This is a slight variation on the method I showed you when you presented a similar problem yesterday in How to create a square w...

How to make a square wave with a pulse

This is a slight variation on the method I showed you when you presented a similar problem yesterday in How to create a square w...

3 jours ago | 0

Answered

Undefined function or variable 'solv'.

Where did you save it? You must save it to a directory or your MATLAB user path, and MATLAB has to know that directory exists...

Undefined function or variable 'solv'.

Where did you save it? You must save it to a directory or your MATLAB user path, and MATLAB has to know that directory exists...

3 jours ago | 0