Community Profile

photo

Star Strider


10,445 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.

Contact

Star Strider's Badges

  • Grand Master
  • 36 Month Streak
  • Thankful Level 3
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View details...

Contributions in
View by

Answered
Why are there minor differences in the creation of two time series for signal generation?
It is most likely due to the way the <http://www.mathworks.com/help/matlab/ref/colon.html *|colon|*> (link) operator works, and ...

1 hour ago | 0

| accepted

Answered
Problem with solve and icdf
It is probably best to avoid the Symbolic Math Toolbox for such problems. Try this: b = @(x,s,bb) x-s*icdf('Normal',b...

2 hours ago | 0

Answered
Making a 2D plot of an equation against 2 datasets
For a 2D version, try this: x = 1:1:20; y = 1:0.5:8; z = bsxfun(@times, x, y'); z(z >= 10) = NaN; figure ...

19 hours ago | 0

Answered
No obvious maximum in power spectral density graph
You *_are_* seeing a peak, just not the one you’re anticipating. The reason is that you have a significant d-c (constant) offse...

20 hours ago | 0

| accepted

Answered
How to find the max value of a function with two variables
This seems to work: idx = find(v == max(v(:))); % Index Of Maximum ‘v’ Then to test to see if t...

21 hours ago | 0

| accepted

Answered
removing spikes from test data.
If you have the newly-released *|R2018b|*, see if the <https://www.mathworks.com/help/matlab/ref/rmoutliers.html *|rmoutliers|*>...

1 day ago | 0

Answered
How to slice each string in a string array without using for loop
Using <https://www.mathworks.com/help/matlab/ref/datetime.html *|datetime|*> and its functions: celldata = [{'2018-12-12'}...

1 day ago | 1

Answered
How can I plot a second order non-linear ODE?
I would think plotting *|‘ySol(t)’|* would be more interesting: syms y(t) ode = .003*diff(y,t)== .003*9.8-3.048*10^...

1 day ago | 0

| accepted

Answered
why just showing two lines
The values for *|‘U6’|* and *|‘H6’|* are _scalars_. They are not functions of *|‘P6’|*. Also, you did not define *|‘N’|* i...

1 day ago | 0

| accepted

Answered
Which filter to use to remove baseline wander on ECG
Your signal is unfortunately sampled at a relatively low rate, so signal processing is difficult. Your signal also has harmonic...

2 days ago | 0

| accepted

Answered
Cannot use Installed Global Optimization Toolbox
Run these from a script or the Command Window: restoredefaultpath rehash toolboxcache If that fails, use the *Cont...

3 days ago | 0

Answered
Why getting some strange fractions? The code is simple and correct,maybe.
It _looks_ as though you are using the Symbolic Math Toolbox. To get the fractions as thier decimal equivalents, use the <h...

3 days ago | 0

Answered
Neglecting certain values taken by the contour
I am not certain what you want to do, so I included two options for you to choose from: Ro=0.00:0.005:0.3; Ri=real(((Ro...

3 days ago | 0

| accepted

Answered
How to avoid for-loop here; repmat
If you have *|R2015a|* or later, use the <https://www.mathworks.com/help/matlab/ref/repelem.html *|repelem|*> (link) function: ...

3 days ago | 0

| accepted

Answered
Remove empty rows from matrix
If *|‘M’|* is your matrix, this works: M = M(~all(M == 0, 2),:); It will remove the ‘all zero’ rows using ‘logical inde...

3 days ago | 0

| accepted

Answered
Use special characters like Å,Ä,Ö in plots?
I did not have any problem displaying them in *|R2018b|*. A work-around is to specify: *|'Interpreter','latex'|* in your *|...

4 days ago | 0

Answered
How to compare each four rows by each other?
If you have the Statistics and Machine Learning Toolbox, use the <https://www.mathworks.com/help/stats/pdist.html *|pdist|*> (li...

4 days ago | 0

| accepted

Answered
How do I read and split an audio file into four different frequency ranges?
If you have *|R2018a|* or later, use the <https://www.mathworks.com/help/signal/ref/bandpass.html *|bandpass|*> (link) function ...

6 days ago | 0

| accepted

Answered
gradient of the fit with uncertainty and R
See the section in the <https://www.mathworks.com/help/matlab/ref/polyfit.html *|polyfit|*> (link) documentation on *Output Argu...

6 days ago | 0

| accepted

Answered
how to find non integer elemets in matrix?
Try this: A = randi(9, 4); % Integer Array idx = randperm(16,5); A(idx) =...

7 days ago | 1

| accepted

Answered
How to create an array of sine waves from arrays of parameters
I would use a combination of vector multiplication of *|‘f’|* and *|‘t’|*, and *|bsxfun|* calls: N = 5; ...

7 days ago | 0

Answered
how can I do a Data selection in a range of data?
Try this: a = [212.3 1712691.538 334.8 1627901.768 432.6 1648187.433 569.2 1929968.041 473...

7 days ago | 2

| accepted

Answered
Writing a loop to calculate sums horizontally for ALL rows
One approach: n = 7; A = rand(n, 12); % Create Matrix cv = sum(A); ...

7 days ago | 0

Answered
How to create plots for special areas of an array?
This is perfect for the <https://www.mathworks.com/help/signal/ref/findchangepts.html *|findchangepts|*> (link) function, introd...

7 days ago | 2

| accepted

Answered
How to export result of the script to txt/doc file ?
Use the <https://www.mathworks.com/help/matlab/ref/fopen.html *|fopen|*> (link) command to create a file identification number. ...

7 days ago | 0

| accepted

Answered
Save variable in workspace but remove from memory?
Since *|‘Segment_Distances’|* appears to be a scalar, the easiest way would likely be to give it a second subscript: Segme...

8 days ago | 0

| accepted

Answered
¡Help! Error: A and B must be floating-point scalars (¿Alguien que responda en español?)
If you have the Statistics and Machine Learning Toolbox, use the <https://www.mathworks.com/help/stats/gamcdf.html *|gamcdf|*> (...

8 days ago | 0

Answered
Hi everyone! i need assistance. How to generate a smoothing polynomial for a non smoothed polynomial/function?
I would use the <https://www.mathworks.com/help/signal/ref/sgolayfilt.html *|sgolayfilt|*> (link) function to create a Savitzky-...

8 days ago | 0

| accepted

Answered
How can I make a piecewise function?
Try this: pcwsfcn = @(n,s) cos(n*pi/20 + s*pi/20) .* (((s+n) >= 10) & ((s+n) <= 50)); t = linspace(0, 60, 250); ...

9 days ago | 0

| accepted

Answered
Bandstop Filter for Force Signal
Here’s another option: Fs = 1E+3; Fn = Fs/2; Fnotch = 40; % Notch Frequency Ws...

9 days ago | 0

Load more