Community Profile

photo

Star Strider


Last seen: Today
13,811 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
Getting a constant instead of (2*exp(-3/2))/3 + 1/3 solving a differential equation
Use the vpa or double function, depending on the result you want.

8 minutes ago | 0

Answered
Place grid on top of patches
The gridlines can be put on top of the figure, and you can also vary the transparency of the grid lines. Example — x = 1:10;...

18 minutes ago | 0

Answered
How to plot two lines in a looped subplot in matlab?
Add an if block in the loop: lines = rand([30 5]); line2 = rand([30 1]); k = 5; for j = 1:k subplot(3, 2, j); plo...

3 hours ago | 0

| accepted

Answered
How to create a large matrix using another matrix
See if the blkdiag function will do what you want.

16 hours ago | 1

Answered
iterative search through matrix in order to add a column
I have no clear idea what you want to do. Try this: First = [randi(50, 100, 1) rand(100,1)]; Second = [randi(50, 10, 1) ra...

19 hours ago | 1

Answered
Shade area between a curve and a vertical line and the x axis
Add these lines: xa = linspace(0.14, 0.2, 25); % Define ‘x’ For ‘patch’ ya = normpdf(xa,.1,.02)...

21 hours ago | 0

| accepted

Answered
help using fzero to find the intersection
At the intersections, the difference between the functions is 0, and since fzero is a root-finding algorithm, choose and appropr...

1 day ago | 0

Answered
Plotting a parametric curve in Matlab..(Dimension error)
Use element-wise operations (the ‘dot operator’): x=e*cos(theta)./sqrt(4/3+4/3*cos(theta).*sin(theta)); y=e*sin(theta)./sqrt(...

1 day ago | 0

| accepted

Answered
Detecting transition in a noisy square wave
With no data, and no description of what you want to do with it, it is difficult to guess at a solution. If you have the Signal...

1 day ago | 0

Answered
Calculate if statement based on date
Try this: T1 = readtable('Precip.Sample.xlsx'); TT1 = table2timetable(T1); TTRP = retime(TT1(:,1:4), 'daily', 'sum'); TTRL ...

2 days ago | 0

Answered
Sorting elements according to an array
I am not certain what you want. Try this: DATA = randi([1 100], 25, 1); % Create ...

2 days ago | 1

| accepted

Answered
How to solve an ODE system with time-dependent variables in MATLAB?
One method of doing that is in ODE with Time-Dependent Terms using linear interpolation. However to do that you would have to p...

2 days ago | 0

Answered
Matlab error "Matrix dimensions must agree"
Integrating an array, set 'ArrayValued' to 'true': By = pz .* BiotSavart .* integral(fy,0,2*pi, 'ArrayValued',1); Bz = BiotSa...

3 days ago | 0

| accepted

Answered
How can i filter data using time frames?
It is necessary to omit the last column (‘eor’) since it is not numeric, so taking the mean of it is inappropriate. Since you...

3 days ago | 0

Answered
Motion Tracking with Accelerometer
The cumtrapz results do not appear to be accumulating with respect to time. Without being able to see the data or your code, my...

3 days ago | 0

Answered
ODE45 How to use atmosisa function with Height function as Input?
‘but when I put in as z(2) as input, it gives error’ That is most likely because you do not pass it as an argument to your ‘d...

3 days ago | 0

Answered
Broken link: Count Steps Using MPU9250 Sensor of BeagleboneBlue Hardware
I’m not certain how you’ve attempted to get that documentation. A DuckDuckGo search finds: Counting Steps using BeagleBone Blue...

3 days ago | 0

Answered
solve vs. fsolve
Give fsolve different starting points, one positive and one negative: eqn1 = @(x) x.^2 - 4; for k = 1:2 a2(k) = fsolve(e...

4 days ago | 0

Answered
Reordering column so the values match an already reordered column
I am not certain what you want to do. Note that the sort function has two outputs, the first being the sorted values and the ...

4 days ago | 1

| accepted

Answered
Time in seconds ode45
Create the ‘tspan’ argument as a vector of more than two elements: tspan = 0 : 0.1 : 10; .

4 days ago | 0

| accepted

Answered
Updating the parameter of ODE45
Actually, ‘f’ needs to be a (2x1) matrix, since there are two values of ‘x’, and they both need to be defined, so something like...

4 days ago | 0

| accepted

Answered
How to make rectangular train?
See if the pulstran function will do what you want.

5 days ago | 0

| accepted

Answered
How to do a surface plot with tangent plane?
I believe the problem is that you need to vectorise the function, using element-wise operations in the multiplications and divi...

5 days ago | 0

| accepted

Answered
add text to value of a plot, part 2
That needs a different approach. Try this: x = 1:10 y = rand(1,10); figure plot(x, y) xt = get(gca, 'XTick'); xtklbl...

5 days ago | 0

| accepted

Answered
what is the error "must return a column vector."
The ODE function must return a column vector. I have no idea what ‘I’ is, however defining it as I do here, the code runs witho...

5 days ago | 0

Answered
add text to value of a plot
if you have R2016b or later, use the xtickformat function to do what you want. Example — x = 1:10 y = rand(1,10); figur...

5 days ago | 0

| accepted

Answered
Plotting multiple repetitions in one graph
See for example: Positioning a cutted signal from a ECK Signal since that EKG signal is reasonably close to the sort of signal y...

5 days ago | 1

Answered
Problem with bsxfun and custom function
This runs without error: A = rand(4) B = randn(5) bsxfun(@na_div,A,B) function[out] = na_div(x,y); if isnan(x) & ~i...

5 days ago | 0

| accepted

Answered
Local smoothing of peaks for a matrix
If you have R2018b or later, see if the rmoutliers function will do what you want.

5 days ago | 0

| accepted

Answered
Help me undersandand Frequency Vector and index vector in fourier transform
That is my code, so I will do my best to explain it. The frequency vector ‘Fv’ here defines the frequencies for a one-sided F...

5 days ago | 0

| accepted

Load more