12,095 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

Steps after ICA on unknown signals

ICA is not going to tell you that, because it does not know. It simply separates the signals. You must then so whatever sort o...

Steps after ICA on unknown signals

ICA is not going to tell you that, because it does not know. It simply separates the signals. You must then so whatever sort o...

약 1시간 ago | 0

Answered

how do I plot different 3D peaks in different locations in single polar plot

Try this: N = 500; rv = linspace(0, 1, N); % Radius Vector av = linspace(0, ...

how do I plot different 3D peaks in different locations in single polar plot

Try this: N = 500; rv = linspace(0, 1, N); % Radius Vector av = linspace(0, ...

약 3시간 ago | 0

Answered

bar plot cannot spread x axis homogeneously

Either add a xlim call, or define both axes limits at the same time, and replace your ylim call with an axis call: axis([0 20 ...

bar plot cannot spread x axis homogeneously

Either add a xlim call, or define both axes limits at the same time, and replace your ylim call with an axis call: axis([0 20 ...

약 10시간 ago | 1

| accepted

Answered

How to plot LSQCURVEFIT output

It is not easy to follow your code. In order to use the linspace result, you need to put ‘xdata’ in your ‘GlobalChiSq’ functi...

How to plot LSQCURVEFIT output

It is not easy to follow your code. In order to use the linspace result, you need to put ‘xdata’ in your ‘GlobalChiSq’ functi...

1일 ago | 0

Answered

How to use Maths Font for Graphs in MATLAB

I’m not certain what you want. The text objects have an Interpreter name-value pair argument that ill allow you to do annotat...

How to use Maths Font for Graphs in MATLAB

I’m not certain what you want. The text objects have an Interpreter name-value pair argument that ill allow you to do annotat...

1일 ago | 0

Answered

For loop index assistance

I do not understand the reason you are indexing ‘j’ as a for loop. I would do something like this to get consecutive ‘j’ vect...

For loop index assistance

I do not understand the reason you are indexing ‘j’ as a for loop. I would do something like this to get consecutive ‘j’ vect...

2일 ago | 0

Answered

find() not as expected

You have encountered ‘automatic implicit expansion’ introduced in R2016b. The result you get from your equality expressions wil...

find() not as expected

You have encountered ‘automatic implicit expansion’ introduced in R2016b. The result you get from your equality expressions wil...

2일 ago | 0

| accepted

Answered

Plotting hyperplane created using meshgrid (something simple)

I am not certain what you want to do. One approach: N = 25; y = linspace(-20,0,N); x = linspace(-50,50,N); z = linspace(...

Plotting hyperplane created using meshgrid (something simple)

I am not certain what you want to do. One approach: N = 25; y = linspace(-20,0,N); x = linspace(-50,50,N); z = linspace(...

2일 ago | 0

| accepted

Answered

how to plot ellipsoid?

Try this (partially copied from the documentation page Connecting Equal Values with Isosurfaces): x = linspace(-10, 10, 50); ...

how to plot ellipsoid?

Try this (partially copied from the documentation page Connecting Equal Values with Isosurfaces): x = linspace(-10, 10, 50); ...

2일 ago | 0

Answered

Sigma notation with matrices

Taking a wild guess: x = rand(1,4); % Create Vector C = rand(4); ...

Sigma notation with matrices

Taking a wild guess: x = rand(1,4); % Create Vector C = rand(4); ...

3일 ago | 0

| accepted

Answered

Weighted fit of ode's to data?

Unless you have a good reason to weightcertain varriables, (for example you are using values from the literature that are given ...

Weighted fit of ode's to data?

Unless you have a good reason to weightcertain varriables, (for example you are using values from the literature that are given ...

3일 ago | 0

| accepted

Answered

Fitting a series of coupled ODEs to a dataset with fminsearch

First, please do not use global variables! Pass your data as parameters instead. That way, you know what you’re giving your fu...

Fitting a series of coupled ODEs to a dataset with fminsearch

First, please do not use global variables! Pass your data as parameters instead. That way, you know what you’re giving your fu...

3일 ago | 0

Answered

fmincon is giving better results than ga for a nonlinear constrained optimization problem.

The ga function produces its best results if you override the default population matrix with one of your own. I always use an o...

fmincon is giving better results than ga for a nonlinear constrained optimization problem.

The ga function produces its best results if you override the default population matrix with one of your own. I always use an o...

3일 ago | 0

Answered

How to use continue to skip the rest of the iteration and go to the new iteration?

Cannot run your code. It depends on what you want to do. Note that continue ‘passes control to next iteration of for or wh...

How to use continue to skip the rest of the iteration and go to the new iteration?

Cannot run your code. It depends on what you want to do. Note that continue ‘passes control to next iteration of for or wh...

4일 ago | 0

Answered

how to solve these equations

You already formatted them to work with the Symbolic Math Toolbox (unless the ‘==’ means a logical operation), so: syms a b c ...

how to solve these equations

You already formatted them to work with the Symbolic Math Toolbox (unless the ‘==’ means a logical operation), so: syms a b c ...

4일 ago | 0

Answered

Extracting data based on categories

The splitapply function (R2015b and later releases) is perfect for this! z = {'01-Jan-1973' 0.0114583333333333 '01-Jan-1...

Extracting data based on categories

The splitapply function (R2015b and later releases) is perfect for this! z = {'01-Jan-1973' 0.0114583333333333 '01-Jan-1...

4일 ago | 0

| accepted

Answered

Extract numerical values from structure

One approach to extracting the numerical values from the cell array of strings that inputdlg returns here is to add an assignmen...

Extract numerical values from structure

One approach to extracting the numerical values from the cell array of strings that inputdlg returns here is to add an assignmen...

4일 ago | 0

| accepted

Answered

fft of sin(pi*x/5)./(pi*x) returns NaN

When ‘x’ is 0, ‘G’ becomes 0/0, and the IEEE standard defines that as NaN. Any NaN in a vector will propagate through all calcu...

fft of sin(pi*x/5)./(pi*x) returns NaN

When ‘x’ is 0, ‘G’ becomes 0/0, and the IEEE standard defines that as NaN. Any NaN in a vector will propagate through all calcu...

4일 ago | 1

| accepted

Answered

Certain functions not available.

The ischange function was introduced in R2017b. Your best option would likely be to upgrade to a more recent release. Workar...

Certain functions not available.

The ischange function was introduced in R2017b. Your best option would likely be to upgrade to a more recent release. Workar...

4일 ago | 0

| accepted

Answered

standard separation of x axis tick marks

Plot them using semilogx: % Output Variable Section: subplot(1,2,1) semilogx(omega,decibels),xlabel('Omega (rad/s)'),ylabel(...

standard separation of x axis tick marks

Plot them using semilogx: % Output Variable Section: subplot(1,2,1) semilogx(omega,decibels),xlabel('Omega (rad/s)'),ylabel(...

4일 ago | 0

| accepted

Answered

How to amplify the signal?

Multiply the vector or matrix by a constant greater than 1, and use the sound (not soundsc) function to listen to it.

How to amplify the signal?

Multiply the vector or matrix by a constant greater than 1, and use the sound (not soundsc) function to listen to it.

4일 ago | 0

Answered

Editor window not opening in Matlab

There is a small white down-pointing arrow in a white circle in the upper right corner of the Editor toolstrip. Among the optio...

Editor window not opening in Matlab

There is a small white down-pointing arrow in a white circle in the upper right corner of the Editor toolstrip. Among the optio...

5일 ago | 1

Answered

Don't understand sequences or how to process them in a function.

You are overshadowing the function flip. It’s best not to do that. Name your function something else, such as ‘myflip’ or so...

Don't understand sequences or how to process them in a function.

You are overshadowing the function flip. It’s best not to do that. Name your function something else, such as ‘myflip’ or so...

5일 ago | 0

Answered

Plotting the orientation of lines

Try this: A = [99.1862290400000 102.281400300000 97.1587243900000 97.3460346000000 104.227574300000 8...

Plotting the orientation of lines

Try this: A = [99.1862290400000 102.281400300000 97.1587243900000 97.3460346000000 104.227574300000 8...

5일 ago | 0

| accepted

Answered

I want to save all the values of e1 and e2 and then I want to plot them

There are several ways to approach this. This causes the least disruption to the code you posted: n = 0.22; r = 0.9; av =...

I want to save all the values of e1 and e2 and then I want to plot them

There are several ways to approach this. This causes the least disruption to the code you posted: n = 0.22; r = 0.9; av =...

5일 ago | 0

| accepted

Answered

How to convert .csv file into audio file

Using numbered variables is never a good idea. Do this instead: T=readtable('2khz.csv'); A = table2array(T(:,3:8)); Then,...

How to convert .csv file into audio file

Using numbered variables is never a good idea. Do this instead: T=readtable('2khz.csv'); A = table2array(T(:,3:8)); Then,...

5일 ago | 0

| accepted

Answered

Probelm with 'writecell'

Try this: m = readcell('rawdata.csv'); writecell(m(2:end,:), 'modified_data.csv'); If that does not work, upload (attach) ‘r...

Probelm with 'writecell'

Try this: m = readcell('rawdata.csv'); writecell(m(2:end,:), 'modified_data.csv'); If that does not work, upload (attach) ‘r...

6일 ago | 0

Answered

Plotting a bivariate function and a tangent line on the same graph

To plot them simultaneously, you need to use the hold function. See if this does what you want: f = @(x,y) x.^2 + 3*(x.^2)....

Plotting a bivariate function and a tangent line on the same graph

To plot them simultaneously, you need to use the hold function. See if this does what you want: f = @(x,y) x.^2 + 3*(x.^2)....

6일 ago | 0

| accepted

Answered

Apply Chebyshev filter to sea surface temperature (SST) data

‘I do not understand what should be the inputs for my problem.’ There are several different filter types. The Chebyshev desi...

Apply Chebyshev filter to sea surface temperature (SST) data

‘I do not understand what should be the inputs for my problem.’ There are several different filter types. The Chebyshev desi...

6일 ago | 0

Answered

Convert Differential Equations to Spate Space

In order to convert your equations to a state-space representation, you need to linearise them. This involves taking the Jacobi...

Convert Differential Equations to Spate Space

In order to convert your equations to a state-space representation, you need to linearise them. This involves taking the Jacobi...

6일 ago | 0

| accepted