Community Profile

photo

Star Strider


Last seen: Today Active 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. Time Zone: UTC-7 (Standard); UTC-6 (Daylight Savings/Summer)

Statistics

All
  • Most Accepted 2021
  • Revival Level 3
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 5
  • First Answer
  • Scavenger Finisher
  • Solver

View badges

Content Feed

Answered
Recover the best individual of each population in GA
Another approach that saves the best in each generation: How to save data from Genetic Algorithm in case MATLAB crashes? - MATLA...

5 hours ago | 0

Answered
How to save data in csv format as output data?
That is not the appropriate way to do the conversion. See my Answer to your previous post.

13 hours ago | 0

Answered
How to splits the number into day, hour, minute and second format?
Maybe I’m mising something, however when I last checked, there are not 37 hours in a day or 61 minutes in an hour! Try someth...

13 hours ago | 0

Answered
Error in function interp1: Sample points must be unique.
I looked through the code, however I do not see that you ever actually created a timetable object (introduced in R2016b). The b...

14 hours ago | 0

Answered
Too Many Input Arguments - I am new to matlab and not sure how to solve this
The short answer is that the ODE function must have two arguments, the first being time and the second the variable to be integr...

23 hours ago | 1

Answered
Error using / Matrix dimensions must agree
All the operations in ‘phi’ need to be vectorised — r=linspace(-180,180,360); t=linspace(-180,180,360); [R,T]=meshgrid(r,t);...

1 day ago | 0

Answered
Extract sensorvalues from string with units
See the documentation section on Remove Prefix or Suffix Characters From Variables — type('Test 2020 06 28.csv') ...

1 day ago | 0

| accepted

Answered
Detect increasing or decreasing depth
Assuming the data are contaminated with broadband (rather than band-limited) noise, the different columns are observations and e...

1 day ago | 1

| accepted

Answered
how to put range for findpeaks function
One approach f = linspace(0, 25, 250).'; % Frequency Vector data = exp(-0.1*f) .* sin(2*pi*f*...

1 day ago | 1

| accepted

Answered
Extracting data from timetable
I am not certain what you want. This should get you started — tv = minutes(0:15).'; ...

1 day ago | 0

Answered
Is it possible to obtain both line and bars on the same graph?
Use the hold function Years=[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]; A=[-8.8000 -8.5211 -8.2421 -7.963...

1 day ago | 1

| accepted

Answered
How to mark the peaks of a signal based on some threshold value?
First, remove as much baseline drift and high-frequency noise as possible. That will make everything easier. I suggest using...

1 day ago | 0

Answered
surfc function : plot goes wrong
It would help to have representative data to experiment with. In its absence, try this — ylim([39.9 40.1]) Experiment wit...

1 day ago | 0

| accepted

Answered
Make a semi sphere and identify the co-ordinates as the shown picture
I am not certain what you want to do. Calculating and plotting the rings corresponding to the required radii (0.66,0.89,0.99)...

1 day ago | 1

Answered
Designing a bandpass filter in Matlab
It took me a while to figure out what the problem was, and it turns out to be that the passband frequencies must be normalised b...

2 days ago | 0

Answered
How should my set my obtained answers into a table form?
Copying from my answer to your previous post: % Secant Method in MATLAB % a=input('Enter function:','s'); % f=inline(a) a =...

2 days ago | 0

| accepted

Answered
Matrix index is out of range for deletion
This is the problem when deleting elements in a loop, although there could be a different problem, such as addressing a column v...

3 days ago | 0

| accepted

Answered
How to shift the graph?
It is easier to use the buffer function for this — t = linspace(0, 250, 5000); s = exp(-0.01*t) .* sin(2*pi*t*700); figure...

3 days ago | 0

Answered
using find-command to find max or min value
This is relatively straightforward. Use max with two outputs: x = 0:13; y = randi(25,1,14)/100; [ymax,idx] = max(y) fi...

3 days ago | 0

| accepted

Answered
How can I make a 3d
There are several ways to do that. One is to use the plot3 funciton, another is the waterfall function. t = linspace(0,5); ...

4 days ago | 0

Answered
How can I plot this GPS/GNSS signal
Use the plot function.

4 days ago | 0

Answered
How to convert fprintf from single row to multiple rows?
There is not enough of the code provided to know what the problem is (and images of code are never appropriate, since actual cod...

4 days ago | 0

| accepted

Answered
How to copy a matrix but skipping some row and column?
A = randi(99,24) skiprc = [1, 2,4, 6, 8, 17, 19]; copyrc = setdiff(1:24, skiprc) B = A(copyrc, copyrc) As requested! ...

5 days ago | 0

| accepted

Answered
Sum of rows based on time range
Try something like this — T1 = table(datetime('now') + days(sort(randperm(150, 20)))', randi(99,20,1), 'VariableNames',{'Time'...

5 days ago | 0

Answered
Conversion of cumulate day of the year and year into Date/Month/Year
The datetime function is remarkably robust (more so that I previously appreciated)! Try this — D = datetime(1970,1,344) Ch...

5 days ago | 0

Answered
3d plot plotting in 2d and 2d plot plotting in 3d.
The must both plot in 3D, however the ‘z’ value of the 2D plot can be whatever you want (here, 10) — x = 0:0.5:5; y = 0:0.2:2...

5 days ago | 0

Answered
How can I change hisfit curve into 2d gaussian contour plot?
I am not certain what you want. Try this — D = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1...

5 days ago | 0

| accepted

Answered
How to detect outliers in the graph
Either use findpeaks on the negative of the ‘y’ vector to get the indices of the valleys, or use islocalmin to get a logical vec...

6 days ago | 0

Answered
Rate of Change - Derivative of experimental data
I usually do something like this — dydx = gradient(y) ./ gradient(x); This assumes the independent variable ‘x’ and the depen...

6 days ago | 0

Answered
How to set proper configuration to obtain peaks of my data
It would help to have some representative data. However, since the data are resonances, and the desired result seems to indic...

6 days ago | 0

| accepted

Load more