11,044 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 I plot a point which is product of two functions in time domain with changing parameter?

Try this: l = 1; %length u1 = 1; %speed u2 = 0; %turning speed(movement=[u1;u2]=[1;0] %inits : x0 = 0; %rear axle x p...

How can I plot a point which is product of two functions in time domain with changing parameter?

Try this: l = 1; %length u1 = 1; %speed u2 = 0; %turning speed(movement=[u1;u2]=[1;0] %inits : x0 = 0; %rear axle x p...

14 hours ago | 1

| accepted

Answered

How to create overlapping blocks using a matrix rows ?

Try this: A=[0 1 0 0 1 1 0 1 0 1 0 1 0]; S = hankel(A, [0 1 1 1]); S = S(1:10,:); B = mat2cell(S, ones(1,size(S,1)), size(S...

How to create overlapping blocks using a matrix rows ?

Try this: A=[0 1 0 0 1 1 0 1 0 1 0 1 0]; S = hankel(A, [0 1 1 1]); S = S(1:10,:); B = mat2cell(S, ones(1,size(S,1)), size(S...

15 hours ago | 1

| accepted

Answered

How can I draw a line from center of multiple circles that will intersect all the circles?

Try this: t = linspace(0, 2*pi); r = [1, 2, 3]; xc = 0.5; yc = 0.1; xcir = (r(:)*cos(t))' + xc; ycir = (r(:)*sin(t))' + y...

How can I draw a line from center of multiple circles that will intersect all the circles?

Try this: t = linspace(0, 2*pi); r = [1, 2, 3]; xc = 0.5; yc = 0.1; xcir = (r(:)*cos(t))' + xc; ycir = (r(:)*sin(t))' + y...

16 hours ago | 0

Answered

how to calculate the norm of each elements of a matrix?

I am not certain what you intend with the term ‘norm’. See if the abs (link) function will do what you want.

how to calculate the norm of each elements of a matrix?

I am not certain what you intend with the term ‘norm’. See if the abs (link) function will do what you want.

17 hours ago | 0

| accepted

Answered

Differential System Of Equations

No mystery at all. Add these three assignments after your dsolve call: xSolvpa = vpa(xSol) ySolvpa = vpa(ySol) zSolvpa = ...

Differential System Of Equations

No mystery at all. Add these three assignments after your dsolve call: xSolvpa = vpa(xSol) ySolvpa = vpa(ySol) zSolvpa = ...

19 hours ago | 0

Answered

Error: Undefined function or variable 'xxx'.

You never assign ‘NeuroCombMi’ anywhere in your code. Note that the error refers to the ‘getNeuroKombMi’ function, not the na...

Error: Undefined function or variable 'xxx'.

You never assign ‘NeuroCombMi’ anywhere in your code. Note that the error refers to the ‘getNeuroKombMi’ function, not the na...

20 hours ago | 1

Answered

akar1 requires more input arguments to run

My guess is that you are running it either by clicking on the green ‘Run’ arrow in the Editor, or from your Command Window. R...

akar1 requires more input arguments to run

My guess is that you are running it either by clicking on the green ‘Run’ arrow in the Editor, or from your Command Window. R...

1 day ago | 0

Answered

Optimizing zero-crossing indices

I wrote ‘zci’ so I will do my best to help you with it. It contains no error checking, so there can be a ‘wrap-around’ effect...

Optimizing zero-crossing indices

I wrote ‘zci’ so I will do my best to help you with it. It contains no error checking, so there can be a ‘wrap-around’ effect...

1 day ago | 0

Answered

matlab on my desktop does not find a function in the path?

My first suggestion for such problems is to run these from a script or from the Command Window: restoredefaultpath rehash to...

matlab on my desktop does not find a function in the path?

My first suggestion for such problems is to run these from a script or from the Command Window: restoredefaultpath rehash to...

1 day ago | 0

Answered

How to unclip acoustic data

Probably not, as discussed in how to remove sound clipping in existing record. The only approach that comes to mind might be ...

How to unclip acoustic data

Probably not, as discussed in how to remove sound clipping in existing record. The only approach that comes to mind might be ...

1 day ago | 0

Answered

how do you save a workspace in high school version. ours does not have the editor tab

If you want to open the MATLAB Editor, either click ‘New Script’ (or ‘New Live Script’) in the upper left corner of the task bar...

how do you save a workspace in high school version. ours does not have the editor tab

If you want to open the MATLAB Editor, either click ‘New Script’ (or ‘New Live Script’) in the upper left corner of the task bar...

1 day ago | 0

Answered

Power spectral density : it is right to evaluate with this script?

Your code appears to be correct. You can check a one-sided version of it with the pwelch (link) function if you have any doub...

Power spectral density : it is right to evaluate with this script?

Your code appears to be correct. You can check a one-sided version of it with the pwelch (link) function if you have any doub...

1 day ago | 1

Answered

B must be a vector (min(size(B))==1). Undefined function or variable 'lags' Undefined function or variable 'corr'

See if the finddelay (link) function will do what you want. (I believe it was introduced in R2016b.)

B must be a vector (min(size(B))==1). Undefined function or variable 'lags' Undefined function or variable 'corr'

See if the finddelay (link) function will do what you want. (I believe it was introduced in R2016b.)

1 day ago | 0

Answered

I want to plot my results individually under each other like a row and not a continues impulse response . Something isn't correct when i try it, Can someone help please?

I am not certain what you want. Try this: x = linspace(0, 20000, 20000)'; % Create Column Vecto...

I want to plot my results individually under each other like a row and not a continues impulse response . Something isn't correct when i try it, Can someone help please?

I am not certain what you want. Try this: x = linspace(0, 20000, 20000)'; % Create Column Vecto...

2 days ago | 0

| accepted

Answered

How can I create a single column

You ideally should have the sampling frequency or the sampling interval for your data, and the sampling intervals should be cons...

How can I create a single column

You ideally should have the sampling frequency or the sampling interval for your data, and the sampling intervals should be cons...

2 days ago | 0

Answered

partial fraction expansion with null pole and null zero and inverse laplace

This code: syms s t Y Y(s) = (s^3-s^2+1)/s^2/(s^2+1) pf = partfrac(Y) y(t) = ilaplace(pf) produces: Y(s) = (s^3 - s^2 ...

partial fraction expansion with null pole and null zero and inverse laplace

This code: syms s t Y Y(s) = (s^3-s^2+1)/s^2/(s^2+1) pf = partfrac(Y) y(t) = ilaplace(pf) produces: Y(s) = (s^3 - s^2 ...

2 days ago | 0

Answered

Undefined variable "comm" or class "comm.FMBroadcastModulator". Why is this happening on my MATLAB Workspace window?

Those are Communications Toolbox functions. You should be able to use them if you have the Communications Toolbox installed.

Undefined variable "comm" or class "comm.FMBroadcastModulator". Why is this happening on my MATLAB Workspace window?

Those are Communications Toolbox functions. You should be able to use them if you have the Communications Toolbox installed.

2 days ago | 0

| accepted

Answered

text editing commands error

In your fprintf call, the escape characters require a ‘backslash’ or ‘backslant’, not a ‘forward slash’ or ‘forward slant’. T...

text editing commands error

In your fprintf call, the escape characters require a ‘backslash’ or ‘backslant’, not a ‘forward slash’ or ‘forward slant’. T...

2 days ago | 0

Answered

Definite Integral for known matrix

Unless I’m missing something in your description of your problem, just integrate your matrix component-wise, as described in Int...

Definite Integral for known matrix

Unless I’m missing something in your description of your problem, just integrate your matrix component-wise, as described in Int...

2 days ago | 0

Answered

How to fill space between two lines?

Try this: H_up = [0,cosd(80)*7.387/10,cosd(70)*7.985/10,cosd(60)*8.906/10,cosd(50)*1.025,cosd(40)*1.238,cosd(30)*1.155,cosd(20...

How to fill space between two lines?

Try this: H_up = [0,cosd(80)*7.387/10,cosd(70)*7.985/10,cosd(60)*8.906/10,cosd(50)*1.025,cosd(40)*1.238,cosd(30)*1.155,cosd(20...

3 days ago | 2

| accepted

Answered

Digital Signal Filtered: How should I interpret my results?

We do not know what your filter is doing. Is it a highpass, lowpass, or something else? It appears that the squarewave input...

Digital Signal Filtered: How should I interpret my results?

We do not know what your filter is doing. Is it a highpass, lowpass, or something else? It appears that the squarewave input...

3 days ago | 0

| accepted

Answered

Problem regarding using fminunc

One obvious approach is to use an options structure: opts = optimoptions('fminunc', 'MaxFunctionEvaluations',1E+6); x0 = ...;...

Problem regarding using fminunc

One obvious approach is to use an options structure: opts = optimoptions('fminunc', 'MaxFunctionEvaluations',1E+6); x0 = ...;...

3 days ago | 0

| accepted

Answered

spectrum with power versus frequency

1 If you want to plot bars, use the bar (link) plot. It is not actually a histogram, it just looks like one. 2 Search th...

spectrum with power versus frequency

1 If you want to plot bars, use the bar (link) plot. It is not actually a histogram, it just looks like one. 2 Search th...

3 days ago | 0

Answered

intersection between two arrays of objects

See if the intersect (link) funciton will do what you want.

intersection between two arrays of objects

See if the intersect (link) funciton will do what you want.

3 days ago | 0

Answered

How can i count the number of points within a region of a circle?

With respect to counting them in each segment (once you have defined the segments as polygons) is to use the inpolygon (link) fu...

How can i count the number of points within a region of a circle?

With respect to counting them in each segment (once you have defined the segments as polygons) is to use the inpolygon (link) fu...

3 days ago | 0

Answered

Code for shannon energy envelope?

Shannon energy is defined as , so use an anonymous function such as: ShannonEnergy = @(x) x.^2 .* log(x.^2); and then take th...

Code for shannon energy envelope?

Shannon energy is defined as , so use an anonymous function such as: ShannonEnergy = @(x) x.^2 .* log(x.^2); and then take th...

3 days ago | 1

| accepted

Answered

Matlab stuck at Warning about Integers

Without knowing more about ‘cutData’, it’s difficult to provide a specific solution. Subscripts must be integers greater than 0...

Matlab stuck at Warning about Integers

Without knowing more about ‘cutData’, it’s difficult to provide a specific solution. Subscripts must be integers greater than 0...

4 days ago | 0

Answered

How to use equation solver with conditions

Theoretically, yes: syms x a r assume(a > 0) x = isolate(-((2*(90 - x)^r - (2*x + 90)^r)*(a + 4)*(r - 1))==0,a) However,...

How to use equation solver with conditions

Theoretically, yes: syms x a r assume(a > 0) x = isolate(-((2*(90 - x)^r - (2*x + 90)^r)*(a + 4)*(r - 1))==0,a) However,...

4 days ago | 0

| accepted

Answered

Vpasolve and indeterminate system

The vpasolve function may not be your best option. See if the lsqr (link) function will do what you want. It’s intended for ...

Vpasolve and indeterminate system

The vpasolve function may not be your best option. See if the lsqr (link) function will do what you want. It’s intended for ...

4 days ago | 0

Answered

Can someone help me?Find the minimun of the Function under these condition?

You have 3 values for the initial parameter estimates and only 2 parameters. Also, using 0 as an initial parameter is never a g...

Can someone help me?Find the minimun of the Function under these condition?

You have 3 values for the initial parameter estimates and only 2 parameters. Also, using 0 as an initial parameter is never a g...

4 days ago | 0