12.133 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

Digital Predistortion for PA model

I searched through the File Exchange and found Adaptive DPD Design. I recognised the ‘fit_memory_poly_model’ function from the ...

Digital Predistortion for PA model

I searched through the File Exchange and found Adaptive DPD Design. I recognised the ‘fit_memory_poly_model’ function from the ...

circa 14 ore ago | 0

Answered

Curve Fitting, Periodic Function

The approach in Curve fitting to a sinusoidal function will give you the parameters you can use to construct the function for as...

Curve Fitting, Periodic Function

The approach in Curve fitting to a sinusoidal function will give you the parameters you can use to construct the function for as...

circa 15 ore ago | 0

Answered

Butterworth filter high pass and band pass

Yes. [b,a] = butter(3, 0.3, 'high'); % Highpass [b,a] = butter(3,[0.2 0.6],'bandpass'); % Ba...

Butterworth filter high pass and band pass

Yes. [b,a] = butter(3, 0.3, 'high'); % Highpass [b,a] = butter(3,[0.2 0.6],'bandpass'); % Ba...

circa 15 ore ago | 0

Answered

Why do I get an NaN error with the ttest?

The degrees-of-freedom are 0. It seems you likely do not have enough data to perform a t-test (or likely any other test of indi...

Why do I get an NaN error with the ttest?

The degrees-of-freedom are 0. It seems you likely do not have enough data to perform a t-test (or likely any other test of indi...

circa 19 ore ago | 0

Answered

Plotting the Fourier series for the function f=pi+x

You forgot to raise (-1) to a power. (You multiplied it instead.) Try this: an=((-1).^(i+1)*sin(i*x))/i; Also, more terms...

Plotting the Fourier series for the function f=pi+x

You forgot to raise (-1) to a power. (You multiplied it instead.) Try this: an=((-1).^(i+1)*sin(i*x))/i; Also, more terms...

1 giorno ago | 0

Answered

Cut an audio file into regularly spaced units

I would use the Signal Processing Toolbox buffer function to segment your signal. One possibility: y = buffer(soundfile(:,1...

Cut an audio file into regularly spaced units

I would use the Signal Processing Toolbox buffer function to segment your signal. One possibility: y = buffer(soundfile(:,1...

1 giorno ago | 0

| accepted

Answered

System Identification Toolbox - Continous or discrete model?

It would seem to depend on your eventual application of the identified model. If you’re going to construct a completely analogu...

System Identification Toolbox - Continous or discrete model?

It would seem to depend on your eventual application of the identified model. If you’re going to construct a completely analogu...

1 giorno ago | 0

| accepted

Answered

How can i calculate area under the cyclic curve and max ordinate of every curve?

Try this: [D,S] = xlsread('Scatter curve.xlsx'); Col1 = S{1,1}; Col2 = S{1,2}; D = D(~any(isnan(D),2),:); ...

How can i calculate area under the cyclic curve and max ordinate of every curve?

Try this: [D,S] = xlsread('Scatter curve.xlsx'); Col1 = S{1,1}; Col2 = S{1,2}; D = D(~any(isnan(D),2),:); ...

1 giorno ago | 0

Answered

Plot bunch of 2D data to 3D surface plot

I have no idea what your functions and data are, however plotting them is straightforward using the plot3 function. Example —...

Plot bunch of 2D data to 3D surface plot

I have no idea what your functions and data are, however plotting them is straightforward using the plot3 function. Example —...

2 giorni ago | 0

| accepted

Answered

Hi, I am facing difficulty in plotting these functions.

Try this: a = 0 : 0.05 : 10; y = sin(2*pi*a.*(a>5)); figure plot(a, y) grid Experiment to get the result you want.

Hi, I am facing difficulty in plotting these functions.

Try this: a = 0 : 0.05 : 10; y = sin(2*pi*a.*(a>5)); figure plot(a, y) grid Experiment to get the result you want.

2 giorni ago | 0

| accepted

Answered

How to put together different cases in one MATLAB code?

With this change: alpha= [-1/3, -1/6, 0]; %koeficijent prigušenja <— CREATE VECTOR FOR ‘alpha’ and others to ...

How to put together different cases in one MATLAB code?

With this change: alpha= [-1/3, -1/6, 0]; %koeficijent prigušenja <— CREATE VECTOR FOR ‘alpha’ and others to ...

2 giorni ago | 1

Answered

bug? cant change the format of an array variable column

You probably want the Exponent property of the Numeric Ruler class (R2015b and later versions). set(gca, 'Exponent',2) may w...

bug? cant change the format of an array variable column

You probably want the Exponent property of the Numeric Ruler class (R2015b and later versions). set(gca, 'Exponent',2) may w...

2 giorni ago | 0

| accepted

Answered

Matrix row cell concatenation

That appears to be appropriate, although the loop is not necessary. a = [ 8 1 6 ; 1 2 3 ; 4 5 6 ]; b = mat2cell(a, ones(1,si...

Matrix row cell concatenation

That appears to be appropriate, although the loop is not necessary. a = [ 8 1 6 ; 1 2 3 ; 4 5 6 ]; b = mat2cell(a, ones(1,si...

2 giorni ago | 0

Answered

Plotting 3 variable functions (Laplace equation)

You need to create matrices from ‘x’ and ‘y’ using either meshgrid or ndgrid. Then, you can plot the contours. Please re-exa...

Plotting 3 variable functions (Laplace equation)

You need to create matrices from ‘x’ and ‘y’ using either meshgrid or ndgrid. Then, you can plot the contours. Please re-exa...

3 giorni ago | 1

| accepted

Answered

How to plot the cyclone symbol in a figure?

I am not aware of one, although I have not yet needed to use one. One option is to use the section sign (§) with a text objec...

How to plot the cyclone symbol in a figure?

I am not aware of one, although I have not yet needed to use one. One option is to use the section sign (§) with a text objec...

3 giorni ago | 0

Answered

How to get time for 50%, 90% and 100% of a graph?

Only some of your records follow the model you describe. For those that do, this works (using the code you posted to get the ...

How to get time for 50%, 90% and 100% of a graph?

Only some of your records follow the model you describe. For those that do, this works (using the code you posted to get the ...

3 giorni ago | 1

| accepted

Answered

polar plot to create circular shape with varying radius

Plotting the sine function in a polar plot will produce one circle in the upper half of the polar axes. To get the sort of pl...

polar plot to create circular shape with varying radius

Plotting the sine function in a polar plot will produce one circle in the upper half of the polar axes. To get the sort of pl...

3 giorni ago | 0

| accepted

Answered

How can I measure the average of a signal at specified time points?

Try this: t = ...; % Time Vector s = ...; ...

How can I measure the average of a signal at specified time points?

Try this: t = ...; % Time Vector s = ...; ...

3 giorni ago | 1

| accepted

Answered

Changes matrix size matlab

Use the reshape function, specifically: Out = reshape(A, [], 2)' producing (for the vector you posted): Out = 0 0...

Changes matrix size matlab

Use the reshape function, specifically: Out = reshape(A, [], 2)' producing (for the vector you posted): Out = 0 0...

3 giorni ago | 0

| accepted

Answered

set default font in all figures

See the documentation section on Default Property Values. Note that this is not the same for all MATLAB releases, and changed...

set default font in all figures

See the documentation section on Default Property Values. Note that this is not the same for all MATLAB releases, and changed...

3 giorni ago | 0

Answered

Finding the nonzero element in a specific row

Select the row, then use find: A = [1 3 0; 2 0 4; 0 7 9] DesiredRow = 2 cix = find(A(DesiredRow,:) ~= 0) so: A = 1...

Finding the nonzero element in a specific row

Select the row, then use find: A = [1 3 0; 2 0 4; 0 7 9] DesiredRow = 2 cix = find(A(DesiredRow,:) ~= 0) so: A = 1...

4 giorni ago | 0

Answered

Why does Matlab substitute a number in a formula instead of solving it?

The Symbolic Math Toolbox outputs its results as symbolic expressions, unless you ask it to do otherwise. (It assumes you want ...

Why does Matlab substitute a number in a formula instead of solving it?

The Symbolic Math Toolbox outputs its results as symbolic expressions, unless you ask it to do otherwise. (It assumes you want ...

4 giorni ago | 0

| accepted

Answered

Improving Presentation of a Graph

If you want your plots to have a finer resolution with respect to ‘R’, define ‘Rv’ to have more points: Rv = linspace(1, 10, 1...

Improving Presentation of a Graph

If you want your plots to have a finer resolution with respect to ‘R’, define ‘Rv’ to have more points: Rv = linspace(1, 10, 1...

4 giorni ago | 1

| accepted

Answered

Harmonic spectrum of the voltage data

Try this: D = dlmread('voltage_u.txt','\t', 4, 0); D = D(1:end-1,1:2); % First Two Co...

Harmonic spectrum of the voltage data

Try this: D = dlmread('voltage_u.txt','\t', 4, 0); D = D(1:end-1,1:2); % First Two Co...

4 giorni ago | 0

| accepted

Answered

What's the best way to solve an equation in this example?

Try this: myFZERO = @(F) fzero(F, 10); % Hard-Coded Initial Estimate a = @(x) x.^2-5; ...

What's the best way to solve an equation in this example?

Try this: myFZERO = @(F) fzero(F, 10); % Hard-Coded Initial Estimate a = @(x) x.^2-5; ...

4 giorni ago | 2

| accepted

Answered

Is it possible to plot a plot() and area() on same axis

Use the hold function: B57 = rand(1, 100); % Create ‘B57’ y1 = B57; PlotAX1 = axes; ...

Is it possible to plot a plot() and area() on same axis

Use the hold function: B57 = rand(1, 100); % Create ‘B57’ y1 = B57; PlotAX1 = axes; ...

5 giorni ago | 0

| accepted

Answered

Checking whether one row of an array is equal to the rows in a separate array

I would be tempted to use the ismember function with the 'rows' option (or ismembertol with the 'ByRows' option).

Checking whether one row of an array is equal to the rows in a separate array

I would be tempted to use the ismember function with the 'rows' option (or ismembertol with the 'ByRows' option).

5 giorni ago | 3

| accepted

Answered

Issues executing while loop

When I ran the code you posted, the while loop becomes infinite if ‘min(DPnew)’ is negative. In that event, this expression: ...

Issues executing while loop

When I ran the code you posted, the while loop becomes infinite if ‘min(DPnew)’ is negative. In that event, this expression: ...

5 giorni ago | 0

| accepted

Answered

Output of the function conv2 is not the size I expected?

Reverse the order of the arguments (so that the smaller size matrix is first), then use the 'same' shape argument: C = conv2(B...

Output of the function conv2 is not the size I expected?

Reverse the order of the arguments (so that the smaller size matrix is first), then use the 'same' shape argument: C = conv2(B...

5 giorni ago | 0

| accepted

Answered

Calculate difference between two signals

I would compare them by noting that the amplitudes of the peaks vary with respect to the independent variable, similarly for bot...

Calculate difference between two signals

I would compare them by noting that the amplitudes of the peaks vary with respect to the independent variable, similarly for bot...

5 giorni ago | 0