Community Profile

photo

Star Strider


Last seen: Today
14,638 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
How to find the slope of the tangent on the graph at X=0 and Y=0 for the given current-voltage graph
I am not certain what you want. See if the gradient funciton does what you want. It requires evenly-spaced data with known d...

3 hours ago | 0

Answered
How to show the plot with the highest value?
One approach would be ‘logical indexing’: h = linspace(0,25); T1 = 20 - h; T2 = 10 + h; Lv = abs(T2) > abs(T1); ...

6 hours ago | 0

Answered
how can calculate irragular shape volume
Experiment with this approach: F1 = openfig('surfShape.fig'); Surfc = F1.Children.Children; X = Surfc.XData; Y = Surfc.YDat...

7 hours ago | 0

Answered
ODE 45 and function combination
I cannot run your code, since I do not have the ‘Tamb’ data. Nevertheless ‘Tamb’ is likely the problem, since it appears to b...

12 hours ago | 1

Answered
Time derivative then partial derivative of symbolic function
Just do: h = diff(g,x); and it works.

13 hours ago | 0

| accepted

Answered
How can I fix the if statement issue in my code?
Replace the if block with: P_ABP = max(P_ABP,0); P_ACP = max(P_ACP,0); With that, I got no negative values whe I ran your co...

23 hours ago | 0

| accepted

Answered
Why is my findpeaks function not working here?
You likely have significant noise, and hte noise is being detected as peaks. Use the 'MinPeakProminence' name-value pair to ret...

23 hours ago | 0

Answered
xlsx reading not taking adate and time
The date and time may be strings. Use the second output as well: [z,s] = xlsread('2019_SysLoad.xlsx'); to return them in ‘s’...

23 hours ago | 0

Answered
hope to add the graph line, It is basic please help
Create a vector out of the ‘vgs’ quantities you want to plot: vgs=[0.7 1 1.5 2]; then use a second loop to index them: W=40...

1 day ago | 0

Answered
Zero crossings and separation of data
Use the envelope function to define the ‘outline’ of the upper portion of the signal (and the lower portion if you want that), t...

1 day ago | 0

| accepted

Answered
Issue with velocity signal from measurement
First, if you want to eliminate noise, use a lowpass filter, and if you have a significant amount of baseline offset or baseline...

1 day ago | 0

| accepted

Answered
ode with varying constant
Interpolating a time-domain vector in a differential equation is essentially described in the ode45 (and other solvers) document...

1 day ago | 0

Answered
plotting 2 graphs on the same axes
Use the hold function.

1 day ago | 0

Answered
Calculate shifts/translation between two curves
The blue curve is not ‘shifting’. It has a different scale with respect to the independent variable than the purple curve. The...

1 day ago | 0

| accepted

Answered
Index exceeds the number of array elements (10).
In this line: A(i)=(x(i+3)-x(i))*((y(i)+3*y(i+1)+3*y(i+2)+y(i+3))/8); ↑ ← HE...

2 days ago | 0

Answered
Unable to perform assignment because the left side is 1-by-3 and the right side is 1-by-2
I’m not certain what you’re doing with that line. The standard way of coding it (to put errorbar objects or text objects at t...

2 days ago | 0

| accepted

Answered
Why does my code only come out with one result?
Call it as: [siftedData, siftedMean, siftedStd, siftedNorm] = project2(rawData, categories, selectedCategory) and all the ou...

2 days ago | 0

| accepted

Answered
How to add error bars to a bar graph
See: error bars in bar plot with categories for one example.

2 days ago | 0

| accepted

Answered
How do I use an unusual base in a semilogx plot?
See if this works for what you want to do: x = 1:5; y = 1.85.^x; figure subplot(2,1,1) semilogx(x, y) ...

2 days ago | 0

Answered
converting abbreviation of months to numerical value
Another approach: mnth_nr = @(mth) find(strcmpi(mth, {'jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'}...

2 days ago | 0

Answered
How to get upper and lower bounds values from an empirical cumulative distribution?
Using the prctile funciton on ‘cdf_y’ may work to calculate the percentiles (that appear to be what you want). To get the appro...

2 days ago | 1

Answered
Plot not showing line fully
There may be some problem with the graphics rendering. See if an update to your graphics driver is available. Otherwise, add...

2 days ago | 0

| accepted

Answered
Complex number to polar form
Use the abs (magnitude) and angle (radian phase angle) functions. The phasor notation for it would be: phasor = [abs(z) ang...

2 days ago | 0

Answered
Understanding the FFT documentation
Your understanding essentially equates to my understanding of fft. It produces a ‘two-sided’ Fourier transform with the first v...

3 days ago | 0

Answered
Making graph at the every for loop
First, if you are defining each plot in a separate figure, remove the figure call in the loop and put it before the loop. Jus...

3 days ago | 0

Answered
How do I add variables into a string within a table?
The only option appears to be to turn the string variable into a char array first: str = "0001336363"; strc = char(str); Out...

3 days ago | 0

| accepted

Answered
Computing findpeaks along 3-Dimensional matrix
I am guessing here, since I do not have your data. Since findpeaks is going to return vectors for the peaks, locations (and oth...

3 days ago | 0

Answered
Fill in a Polar Scatter Plot
Do everything in Cartesian coordinates, although defining the coordinates in terms of and . Then, use pol2cart to create them ...

3 days ago | 0

Answered
finding the exact points of Zero crossing using interpolation method
You are plotting the values of the data at the indices that ‘zci’ returns, not the interpolated aero-crossings. It would be b...

3 days ago | 0

| accepted

Answered
how do i find minimum value of function with matlab?
I agree with you that using the diff function is the appropriate way to begin.

3 days ago | 0

Load more