Community Profile

# Star Strider

##### Last seen: Today
14,377 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.

View details...

Contributions in
View by

How can I get peaks values and distance between them indicated in the figure?
The findpeaks function could possible do what you want.

30 minutes ago | 0

Why won't this plot?
The problem are the y-axis limits in the axis call. Comment-out the axis call (as I do here) and you will immediately see the...

1 hour ago | 0

Convert data plot from Cartesian to spherical coordinates
See if the cart2sph function will do what you want.

2 hours ago | 0

Even binned histogram to uneven bins?
If you are using the histogram function, you can specify the bind widths using the edges option. See Specify Bin Edges of Histo...

2 hours ago | 0

How do I troubleshoot if a plot line doesn't show up on a figure
It plots a horizontal dotted line at 55 from 0 to 7. If it works independently, then there are several possibilities, some of...

5 hours ago | 0

| accepted

How to make while loop faster ?
First, the number of iterations is going to be: n_iter = 1/D_1 evaluating to: n_iter = 6.666666666666667e+12 That is...

5 hours ago | 0

Genetic Algorithm: undefined function or method for input arguments of type' double '.
The fitness function needs to accept arguments, and (in general) needs to return a scalar result. That will likely require that...

6 hours ago | 0

How to make a plot from for loop where the results are a 3x1 matrix?
Try this slight variation on your code: s=300; r=25; k=30; kukat=[s;r;k]; A=[0.23 0 233;0.74 0.52 0;0 0.35 0.46]; a=15; ...

7 hours ago | 0

| accepted

Finding different length pulses
Note that ‘clean them up’ is ever so slightly ambiguous. Assuming that the objective is to remove some of what might be consi...

7 hours ago | 0

Building Low-pass filter with Sinc function
I am not exactly certain what the problem is from a theoretical prespective (I will leave it to you to explore that), however th...

9 hours ago | 0

| accepted

Why didn't I get an error for my matrices?
You are seeing ‘Automatic Implicit Expansion’ introduced in R2016b (much to the consternation of many of us). Previously, the o...

10 hours ago | 0

How do you plot the phase and amplitude of a complex function?
to calculate the amplitude, use the abs function. For the phase, use the angle function.

21 hours ago | 1

How to plot spectral density given a column of data?
My guess is that there is a significant d-c (constant) offfset. This is the mean of ‘x’, and will show up as the amplitude at ...

1 day ago | 1

Issues with entering into MATLAB
This sems to be homework. Vectorise the expoinentiation: y= (2*x.^1.01)+ sin(3*pi/2 *x)-10*cos(x)-3; ↑ ← HERE Th...

1 day ago | 0

| accepted

How to solve ODEs with time dependent parameters by ode45 method
I do not see any interp1 calls in the code you posted. To use a function in a calculation, the function needs to be evaluated...

1 day ago | 0

| accepted

How to read a list of strings in a txt file?
Unless I am missing something, ‘KKK’ is never incremented inside the while loop, so it will in fact be infinite. If you are a...

1 day ago | 0

| accepted

How can i work with a matrix that present floating points
If you want the (x,y) data for that contour, you need to ask contour to give it to you: c1000 = contour(x,y,bat_N,[-1000],'Sho...

1 day ago | 0

How to find a Y value of a given X?
This is easiest if you create ‘v’ as an anonymous function: t = 0:0.00001:0.01; v = @(t) 50*exp(-1600*t) - 50*exp(-400*t); ...

1 day ago | 0

MATLAB R2020a not running
See if the solution in: Why will MATLAB not start up properly on my Windows based system? will work. (It worked when I had a si...

1 day ago | 0

How to make a square wave with a pulse
This is a slight variation on the method I showed you when you presented a similar problem yesterday in How to create a square w...

1 day ago | 0

Undefined function or variable 'solv'.
Where did you save it? You must save it to a directory or your MATLAB user path, and MATLAB has to know that directory exists...

2 days ago | 0

How to add a column to a table
Try this: Stream = mat2cell(randi(9,6,4), 6, ones(1,4)); % Create Stream WL = Stream{:,2}; H = Stream...

2 days ago | 0

DateTime conversion from Table Column
The datetime function has a 'ConvertFrom' option. For one example, see: Convert Excel Date Number to Datetime There are other ...

2 days ago | 0

| accepted

how to modify the axis labels in the attached plot?
I could not get the axis tick labels to show with imshow, so I went with image instead (and a bit of manual editing to import th...

2 days ago | 1

How can I save my results of a loop in one table
The adtest function returns scalars for the outputs, so something like this could work: [h(v_b, v_T),p(v_b, v_T)] = adtest(dat...

2 days ago | 1

| accepted

vpa() examples not working in R2020a
Try: sympref('default'); .

2 days ago | 1

| accepted

How to create a square wave pulse
Without the Signal Processing Toolbox: t = linspace(0, 10E-3); % Time Vector (0 - 10ms) f = 3...

2 days ago | 0

How to specify parameters for matlab's notch filter function
The Q-factor is the resonant frequency divided by the bandwidth, so smaller bandwidths result in higher Q-factors. The Q-factor...

2 days ago | 0

How to compare an integer to the elements of a vector?
Another approach: val = min(C(u<C)); idx = find(C == val); .

2 days ago | 0