10,364 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 do I rotate contour plot?

It would help to know how you calculated your data, and what you’re plotting. Rotating the plot _might_ be as simple as reversi...

How do I rotate contour plot?

It would help to know how you calculated your data, and what you’re plotting. Rotating the plot _might_ be as simple as reversi...

1 day ago | 0

Answered

Plotting peaks and troughs of a large oscillating simulation data

One option, if you are using *|findpeaks|*, is to negate it and then plot the negative of the peaks. *_Example_ —* t ...

Plotting peaks and troughs of a large oscillating simulation data

One option, if you are using *|findpeaks|*, is to negate it and then plot the negative of the peaks. *_Example_ —* t ...

2 days ago | 1

| accepted

Answered

how to open csv and plot contour data

You can probably just use the <https://www.mathworks.com/help/matlab/ref/contour.html *|contour|*> (link) function. *_Examp...

how to open csv and plot contour data

You can probably just use the <https://www.mathworks.com/help/matlab/ref/contour.html *|contour|*> (link) function. *_Examp...

3 days ago | 0

| accepted

Answered

How can I solve this Problem?

Use the <https://www.mathworks.com/help/symbolic/isalways.html *|isAlways|*> (link) function.

How can I solve this Problem?

Use the <https://www.mathworks.com/help/symbolic/isalways.html *|isAlways|*> (link) function.

3 days ago | 0

Answered

Averaging data with slightly different time values

I would use the <https://www.mathworks.com/help/signal/ref/resample.html *|resample|*> (link) function. You can specify a new, ...

Averaging data with slightly different time values

I would use the <https://www.mathworks.com/help/signal/ref/resample.html *|resample|*> (link) function. You can specify a new, ...

3 days ago | 0

Answered

Merge fft data sets

I would take the _ensemble average_, either of the time-domain signals before you take the *|fft|*, or of the individual Fourier...

Merge fft data sets

I would take the _ensemble average_, either of the time-domain signals before you take the *|fft|*, or of the individual Fourier...

3 days ago | 0

| accepted

Answered

plot doesn`t work (probably unrelated to the code )

For *|‘pulseRC1’|*, you either need to define *|‘a’|*, or give it a range and use the <https://www.mathworks.com/help/symbolic/f...

plot doesn`t work (probably unrelated to the code )

For *|‘pulseRC1’|*, you either need to define *|‘a’|*, or give it a range and use the <https://www.mathworks.com/help/symbolic/f...

3 days ago | 0

Answered

Error using sym/cat>checkDimensions (line 70) CAT arguments dimensions not consistent.

I did not troubleshoot *_all_* the errors that might be in your code, only the ones in the *|‘eqs’|* vector. Spaces are importa...

Error using sym/cat>checkDimensions (line 70) CAT arguments dimensions not consistent.

I did not troubleshoot *_all_* the errors that might be in your code, only the ones in the *|‘eqs’|* vector. Spaces are importa...

4 days ago | 1

| accepted

Answered

"simplify" doesn't work properly

Choosing the correct function is important. Without knowing your _actual_ expression (so I do not know if this is appropriate f...

"simplify" doesn't work properly

Choosing the correct function is important. Without knowing your _actual_ expression (so I do not know if this is appropriate f...

4 days ago | 1

| accepted

Answered

Error using str2sym (line 83) Unable to convert string to symbolic expression: L 1 (C 103): BADCH: Invalid character(s).

You are using the Unicode ‘En Dash’ (decimal *|8211|*, hex *|2013|*) instead of a normal hyphen (decimal *|45|*, hex *|002D|*) f...

Error using str2sym (line 83) Unable to convert string to symbolic expression: L 1 (C 103): BADCH: Invalid character(s).

You are using the Unicode ‘En Dash’ (decimal *|8211|*, hex *|2013|*) instead of a normal hyphen (decimal *|45|*, hex *|002D|*) f...

4 days ago | 1

| accepted

Answered

Undefined function or variable 'retime'

The only thing I can think of is to try running these from a script or the Command Window: restoredefaultpath rehash t...

Undefined function or variable 'retime'

The only thing I can think of is to try running these from a script or the Command Window: restoredefaultpath rehash t...

4 days ago | 0

Answered

how to calculate rms of fluctuation velocity

You can use the <https://www.mathworks.com/help/signal/ref/rms.html *|rms|*> (link) function in the Signal Processing Toolbox. ...

how to calculate rms of fluctuation velocity

You can use the <https://www.mathworks.com/help/signal/ref/rms.html *|rms|*> (link) function in the Signal Processing Toolbox. ...

5 days ago | 0

| accepted

Answered

How to remove/skip text at beginning of a file while reading it using textscan?

If the text line is a separate line at the beginning of the file (as it appears to be), use the <https://www.mathworks.com/help/...

How to remove/skip text at beginning of a file while reading it using textscan?

If the text line is a separate line at the beginning of the file (as it appears to be), use the <https://www.mathworks.com/help/...

5 days ago | 1

| accepted

Answered

As I want tolve differential eduation in matlab 2018 but its not solving and making matlab busy.

You may have encountered the ‘syms freeze’. Try the steps described in: <https://www.mathworks.com/matlabcentral/answers/41...

As I want tolve differential eduation in matlab 2018 but its not solving and making matlab busy.

You may have encountered the ‘syms freeze’. Try the steps described in: <https://www.mathworks.com/matlabcentral/answers/41...

5 days ago | 0

Answered

3D stem plot colored by Z-value

This requires a bit more code than I would like, partially because it needs to scale the colors appropriately to match the *|sca...

3D stem plot colored by Z-value

This requires a bit more code than I would like, partially because it needs to scale the colors appropriately to match the *|sca...

7 days ago | 2

| accepted

Answered

I 2-D plot of y with specific x

I am _guessing_ here as to what you want. Try this: psnr_val=[22 24 29 32 33]; exp_t =[0.01 0.1 1 10 100]; ...

I 2-D plot of y with specific x

I am _guessing_ here as to what you want. Try this: psnr_val=[22 24 29 32 33]; exp_t =[0.01 0.1 1 10 100]; ...

7 days ago | 0

| accepted

Answered

visioner code changing string

Letters in MATLAB (and most other languages) are represented by numeric values. Since this is homework, we only give hints, so ...

visioner code changing string

Letters in MATLAB (and most other languages) are represented by numeric values. Since this is homework, we only give hints, so ...

8 days ago | 0

Answered

Find index of an array that corresponds to a given value

I can only _guess_ as to what the exact problem may be without seeing your data. It could be that what you _believe_ to be the ...

Find index of an array that corresponds to a given value

I can only _guess_ as to what the exact problem may be without seeing your data. It could be that what you _believe_ to be the ...

8 days ago | 0

| accepted

Answered

Solving simultaneous equations without martix method

You would most likely have to use the Symbolic Math Toolbox: syms x y Eq1 = x + y == 10; Eq2 = x + 2*y == 15; [x...

Solving simultaneous equations without martix method

You would most likely have to use the Symbolic Math Toolbox: syms x y Eq1 = x + y == 10; Eq2 = x + 2*y == 15; [x...

8 days ago | 0

| accepted

Answered

nlinfit function, not enough input arguments

Assuming that *|‘y’|* exists somewhere in your workspace, and since for *|MATLAB|* Statistics and Machine Learning Toolbox and O...

nlinfit function, not enough input arguments

Assuming that *|‘y’|* exists somewhere in your workspace, and since for *|MATLAB|* Statistics and Machine Learning Toolbox and O...

8 days ago | 0

| accepted

Answered

Textscan has an error with some file names and not others?

Check the second output *|‘errmsg’|* in your <https://www.mathworks.com/help/matlab/ref/fopen.html *|fopen|*> (link) call. It w...

Textscan has an error with some file names and not others?

Check the second output *|‘errmsg’|* in your <https://www.mathworks.com/help/matlab/ref/fopen.html *|fopen|*> (link) call. It w...

8 days ago | 0

| accepted

Answered

What model would fit a set of values that increase then decrease over time?

Solving for the second compartment in a two-compartment model comes close. Model: [C1] =k1=> [C2] =k3=> [ ] <=k2=...

What model would fit a set of values that increase then decrease over time?

Solving for the second compartment in a two-compartment model comes close. Model: [C1] =k1=> [C2] =k3=> [ ] <=k2=...

9 days ago | 1

| accepted

Answered

How can I plot the different values in a matrix as different entities in a single plot?

This plots the row- and column-subscripts, each with the appropriate marker and color. *_The Code_ —* M = [1 3 4 4 1 ...

How can I plot the different values in a matrix as different entities in a single plot?

This plots the row- and column-subscripts, each with the appropriate marker and color. *_The Code_ —* M = [1 3 4 4 1 ...

9 days ago | 0

| accepted

Answered

How do you find a sinusoidal curve on given data without using curve fit tool box?

See <http://www.mathworks.com/matlabcentral/answers/121579-curve-fitting-to-a-sinusoidal-function *Curve fitting to a sinusoidal...

How do you find a sinusoidal curve on given data without using curve fit tool box?

See <http://www.mathworks.com/matlabcentral/answers/121579-curve-fitting-to-a-sinusoidal-function *Curve fitting to a sinusoidal...

10 days ago | 0

Answered

Is there any function can compute the value of sgn?

The closest you can lkikely get is the <https://www.mathworks.com/help/fuzzy/sigmf.html *|sigmf|*> (link) function in the Fuzzy ...

Is there any function can compute the value of sgn?

The closest you can lkikely get is the <https://www.mathworks.com/help/fuzzy/sigmf.html *|sigmf|*> (link) function in the Fuzzy ...

11 days ago | 1

| accepted

Answered

plot confidence interval of a signal

In order to calculate the *|95%|* confidence intervals of your signal, you first will need to calculate the *|mean| and *|std|* ...

plot confidence interval of a signal

In order to calculate the *|95%|* confidence intervals of your signal, you first will need to calculate the *|mean| and *|std|* ...

11 days ago | 1

| accepted

Answered

Hi!! What is wrong in my code?

First, MATLAB parses matrices differently than you would expect it to, so your original *|‘eqns’|* system is (as MATLAB reads it...

Hi!! What is wrong in my code?

First, MATLAB parses matrices differently than you would expect it to, so your original *|‘eqns’|* system is (as MATLAB reads it...

12 days ago | 0

Answered

Display array values side by side

Force *|‘real’|* and *|‘imag’|* to become column vectors first: fprintf(fileID,'%8d\t %8d\n',[real(:), imag(:)]') or ve...

Display array values side by side

Force *|‘real’|* and *|‘imag’|* to become column vectors first: fprintf(fileID,'%8d\t %8d\n',[real(:), imag(:)]') or ve...

12 days ago | 1

| accepted

Answered

I need help for coding or writing Active Appearance Model (AAM) for chest radiography images?

In the column to the right under *‘Entire Website’* are *|3|* links to File Exchange contributions for Active Appearance Models....

I need help for coding or writing Active Appearance Model (AAM) for chest radiography images?

In the column to the right under *‘Entire Website’* are *|3|* links to File Exchange contributions for Active Appearance Models....

12 days ago | 0

Answered

Linear regression model with fitlm

You may have to do a separate *|anova|* call to get it: Anova = anova(correlation); AnovaP = Anova.pValue(2); That w...

Linear regression model with fitlm

You may have to do a separate *|anova|* call to get it: Anova = anova(correlation); AnovaP = Anova.pValue(2); That w...

12 days ago | 0

| accepted