Community Profile

photo

Star Strider


Last seen: 1 day ago
13,996 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

  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • First Submission
  • 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
Conversion to cell from ClassificationSVM is not possible
I cannot fun your code, however running something similar suggests to me that using curly braces {} to subscript ‘SVMModels’ cou...

9 hours ago | 0

| accepted

Answered
fmincon error in intial value
The ‘fun6’ function produces a purely imaginary result at the initial point. That is throwing the error. One option is to sp...

15 hours ago | 0

| accepted

Answered
Error with load function
I am surprised the save call worked at all! Note that: savepath='filepath'; savefile='Tumble Data User Applicable.mat'; A...

15 hours ago | 0

Answered
using Matlabfunction for determinant, not enough input arguments
I am not certain with the problem is with the ‘J_fcn’ produced by matlabFunction. (The error may refer to the reshape call with...

18 hours ago | 0

| accepted

Answered
how to center axis label?
Try this: ylabel({'Trajectory angle';'with respect to vortex axis (°)'}) That worked when I tested it. See the documentati...

1 day ago | 1

| accepted

Answered
Who could use short code to represent the following code:
Try this: data(:,12) = mean(data(:,2:11), 2); If I understand correctly what you want to do, that should work.

1 day ago | 0

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same.
By defining ‘y’ in ‘ObjectiveFunction’, you are overwriting whatever you pass to it as ‘y’ as an argument. Also: x<=0.1; m...

1 day ago | 0

Answered
Table Variable Name "X_|P|" works on my computer.....does not work on anyone elses
The extended variable names began in R2019b. From the Release Notes for R2019b with respect to table variable names: ‘Start...

1 day ago | 0

| accepted

Answered
How to find radius of curvature?
One option is the code in fitting a circle with fitnlm. (I added plotting code and a plot of the data and the fitted circle.)

1 day ago | 0

Answered
power/frequency (db/rad/sample))
The spectrogram plot is actually a surf plot seen from the top down (using a view(0,90) call). See if using surf or mesh with v...

2 days ago | 0

Answered
Scatter3 not plotting after providing condition.
Use the hold function. figure scatter3(x(w1), y(w1), z(w1), 'y', 'filled') hold on scatter3( ...) scatter3( ...) scatter...

2 days ago | 0

| accepted

Answered
Notch filtering from coefficients
The function gives you the ‘b’ vector for the filter. The ‘a’ vector is 1, since this appears to be a FIR filter design. To ...

2 days ago | 0

| accepted

Answered
Accessing a value in a vector from a conditional statement
There are several ways to do this. My approach: v=[6 10 25 35 50 65 80]; x=10.02; y=10.47; mv=max(x*.125,y*1.25); ind =...

3 days ago | 0

Answered
How can I do implicit differentiation
I can find no documentation that it is possible in MATLAB (as much as I like it). See this Wolfram Alpha page for the correct...

4 days ago | 0

Answered
run command 100 times and put the answers in one vector
Use a for loop. Assign the appropriate ‘results’ to a cell array (if they are different sizes in each iteration), or vector (if...

4 days ago | 0

Answered
How do I plot different array smoothly which contain NaN in same figure
One option is to use the fillmissing function. Example — sig1 = [rand(1,10) NaN]; sig2 = [rand(1,10) NaN]; sig3 = [rand(1...

4 days ago | 0

Answered
numerical solution of a system of ODE which is not in standard form
It would likely help to have your code. If you want more tractable numerical results, use the vpa function. The double funct...

4 days ago | 1

| accepted

Answered
Play an audio files with different volumes
See my Answer to your duplicate Question.

4 days ago | 0

Answered
Play an audio file with different volume
Use the sound function with the appropriate multiplicaiton factor. (Note, there is no guarantee that the result will not be cli...

4 days ago | 0

Answered
pol2cart with matrices
This appears to be the same as: using surf and pol2cart on matrix. You can get a 2D plot of it by using: view(0,90) Anothe...

4 days ago | 0

Answered
Create custom x-axis for 'imagesc' plot
Much of your code is ‘over the horizon’ and so out of sight. Try something like this: x = 0:500; ...

4 days ago | 0

| accepted

Answered
fitting a circle with fitnlm
The arguments to ‘circlefun’ are reversed. The parameter vector must always be the first argument, and the independent variable...

4 days ago | 1

| accepted

Answered
3D Matrix extraction and manipulation
That can be straightforward or slightly complicated, depending on how you want to do it. To extract the first 67 rows: M = ...

5 days ago | 0

| accepted

Answered
Contaminate an EMG with 50 Hz signal
I have no idea what ‘isn’t working’ means. This version of your code works: Fs = 256; ...

5 days ago | 0

| accepted

Answered
How to color individual points on errorbar plot?
You need to plot with respect to an independent variable. Try this: means=[1 1 2 3 4]; standarddeviation=[0.1 0.2 0.2 0.3 ...

5 days ago | 0

Answered
displacing iterations of a signal
I am not certain what you want to do. If you want the different waveforms to appear consecutively, plot them against an indepen...

5 days ago | 0

Answered
How can I plot shaded confidence intervals on my plot?
Add these two patch calls after the last plot call and before the hold off call: patch([x fliplr(x)], [y-CI fliplr(y+CI)], [0,...

6 days ago | 1

| accepted

Answered
how to obtain the frequency when doing the fourier trasform
Assuming that the data are regularly sampled, so that the sampling intervals are the same for all of them, I usually do somethin...

6 days ago | 0

| accepted

Answered
Month as a two digit number
To have leading zeros, it has to be a character array or string variable. Try this: Date = datetime('now'); mth = sprintf(...

6 days ago | 2

Answered
Designing a fir filter and how to apply it to a signal
You need to normalise the stopband frequencies by the Nyquist frequency. Try this: Wn=[fp1 fp2]/(fs/2); That worked when I...

6 days ago | 0

| accepted

Load more