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
  • Scavenger Finisher
  • Most Accepted 2022
  • Most Accepted 2021
  • Solver
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • Revival Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 5

View badges

Content Feed

Answered
How to calculate are under the curve from 2 vector sets.
It would help to have the equation for the curve. In its absence — x = linspace(0, 12); y = 4 - (x - 2).^2; y_int = cum...

16 minutes ago | 0

Answered
How to make a surface in polar coordinates using polar3d?
This takes too long to run here (it took 336.315050 seconds — 00:05:36.315049 — just now on MATLAB Online) however it plots the ...

30 minutes ago | 0

Answered
how to consider only the integer part discarding the exponent part
This appears to be a reasonably robust approach — a = [1 23 56]*10^(-9); b = a.*10.^ceil(-log10(abs(a))+1) max_a = max(b) ...

2 hours ago | 0

Answered
digital lowpass filter using Kaiser and Hamming window
Yes, I could. If you want to design one as well, use the fir1 functon. I also recommend the See Also section of the document...

2 hours ago | 0

Answered
lsqcurvefit() moved from Matlab to toolbox?
The lsqucurvefit function has always been in the Optimization Toolbox for as long as I’ve been using MATLAB. You may be referri...

17 hours ago | 0

Answered
FFT from a excel file
EDIT — (1 Jun 2023 at 16:07) The array is table apparently created by readtable. Use cell array indexing (explained below) or ...

21 hours ago | 0

Answered
Appy lsqcurvefit to multiple data sets with multiple parameters
If I understand the problem correctly, and all the data sets contain column vectors and are the same column size (they do not ha...

1 day ago | 0

Answered
Why does str2double command return NaN? What type of array should I convert into for running fitlm command??
Of course str2double returned NaN for all of them because none of them are strings or character vectors. I suspect there are ...

1 day ago | 0

| accepted

Answered
Why the nonlinear least square fitted curve is not a curve?
Just for fun, I added a periodic function and a slope to the model — Data=[0.928571429, 0; 0.012118074, 1.5; -0.45000118...

1 day ago | 0

Answered
GLOBAL VARIABLE :HOW USE IT?
Please do not ever use global variables. Use the approach described in Passing Extra Parameters instead.

3 days ago | 2

Answered
how to find average curve of n curves? n=3 in this case
This is a bit more involved than it first appears. Getting the data from the .fig file is straightforward, however it then ge...

3 days ago | 0

| accepted

Answered
How to let Matlab divide my data on time interval [0 400] into multiple time intervals in one plot [0 30] [30 60] etc.
If you have the Signal Processing Toolbox, use the buffer function and a loop — Fs = 259/50; Tlen = 380; t = linspace(0, Tle...

3 days ago | 0

Answered
Error using extractAfter Numeric value exceeds the number of characters in element 1. What is wrong? How do I fix this?
You are making this much too difficult! If you want to remove specific variables, first use readmatrix (introduced in R2013b)...

4 days ago | 1

Answered
Hi everyone...I am getting transient peak in the signal from 0 to 6000 hz in the sound pressure level plot. Can anyone suggest me how to remove it?
If you are referring to the series of ‘spikes’, the easiest way would be to use findpeaks to define the spikes and the frequenci...

4 days ago | 0

Answered
What is diff. b/w fft and pspectrum command in Matlab?
If you only want to plot the magnitude spectrum, use the fft function. The differences between the various functions are sign...

5 days ago | 1

Answered
Process .dat file, plot, scale, and put back into similar format
It would help to have the file rather than an image. I would do something like this: fidi = fopen('Hled.dat','rt'); C = te...

6 days ago | 0

| accepted

Answered
How to shade the area between two lines (constructed by large number of data points)
It works the same way with data points as with functions — x = linspace(0, 10, 50).'; % Assume Column Vec...

6 days ago | 0

| accepted

Answered
three order complex coefficient polynomial root matlab
There are at least two options — z = complex(randn(3,1), randn(3,1)) r = roots([28; z]) syms x p = 28*x.^3 + z(1,:)*x.^2...

7 days ago | 1

Answered
lowpass filter function doesn't filter out data
The ‘NoisySignal’ has broadband noise, so a frequency-selective filter can eliminate some of the noise, however not all of it. ...

7 days ago | 1

| accepted

Answered
Plotting arrays with different sizes
Transpose ‘gamma’ to create a family of curves — gamma = [1, 1.2, 1.4, 1.6, 1.8, 2]; x = [0:0.01:2000]; b = 349.22567; y = ...

7 days ago | 0

| accepted

Answered
fitline not displaying correct x values datetime
You probably need to do centreing and scaling with your data, then use datetick to display the dates correctrly — dates = date...

7 days ago | 0

| accepted

Answered
MatLab Multiple graphs in one axis
The easiest option is to use the hold function. Put the different ‘x’ and ‘y’ vectors in one matrix, then plot them x = (9:0.2...

7 days ago | 0

Answered
2d line plot
The patch documentation section on Create Multicolored Line offers one option. The problem with the data is that the temperat...

7 days ago | 0

| accepted

Answered
Detecting Certain Parts of a Specific Signal
Start with the findsignal function. It may be necessary to invert the tall peak to find the inverted version of it.

8 days ago | 0

Answered
Non-homogeneous frecuency in Matlab Mobile measurements
If you are referring to Android Sensors Data Acquisition , probably not. To create a regularly-sampled signal, it would be nece...

10 days ago | 0

Answered
Error bars centered at one bar in multi-bar plot
It would help to have your data matrices. Use XEndPoints and YEndPoints to specify the ends of the bars. y = rand(5,4); err...

10 days ago | 2

| accepted

Answered
fillmissing function with makima method
Thje 'makima' method is likely best for filling NaN gaps in varying data. Yours appear to be relatively constant, other than fo...

10 days ago | 0

| accepted

Answered
calculating the average of a column of a csv file with specified steps and saving it in a new csv file
This was a bit more involved than I thought it would be — T1 = readtable('Data_1min.csv', 'VariableNamingRule','preserve') ...

11 days ago | 0

Answered
3D plot in polar coordinates
This took a while to get working correctly, and takes about 500 seconds to run, so I will post the code here slthough not the pl...

11 days ago | 0

| accepted

Answered
Need help to removing motion artifact from ECG signal
Try something like this — LD = load('test10_00wm.mat') type('ECG.m') % I was hoping Tha...

12 days ago | 0

| accepted

Load more