
Star Strider
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
RANK
3
of 277,636
REPUTATION
62,396
CONTRIBUTIONS
0 Questions
19,144 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
8,715
RANK
2,605 of 18,784
REPUTATION
614
AVERAGE RATING
4.70
CONTRIBUTIONS
5 Files
DOWNLOADS
28
ALL TIME DOWNLOADS
5770
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
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...
6 hours ago | 0
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 ...
10 hours ago | 0
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...
13 hours ago | 0
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
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
GLOBAL VARIABLE :HOW USE IT?
Please do not ever use global variables. Use the approach described in Passing Extra Parameters instead.
2 days ago | 2
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...
2 days ago | 0
| accepted
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
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)...
3 days ago | 1
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
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...
4 days ago | 1
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...
5 days ago | 0
| accepted
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
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...
6 days ago | 1
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. ...
6 days ago | 1
| accepted
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 = ...
6 days ago | 0
| accepted
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
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
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
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.
7 days ago | 0
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
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
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
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') ...
10 days ago | 0
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
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
reference a Mathworks Algorithm found in the forum
The URL of the particular post would be my choice. Right-click on the ‘chain’ (‘Link’ or ‘Hyperlink’) icon to copy it. For e...
13 days ago | 1
| accepted
Deriving acceleration from velocity equation
The gradient function could be helpful. EDIT — (20 May 2023 at 12:46) If this is symbolic, of course, just take the deriva...
13 days ago | 0
Can't figure out these two errors, if someone can help I'll appreciate it
The problem is that the error message does not say what the particular error is. Reproducing that line with various definitions...
13 days ago | 0
| accepted
Error using ellipord?
The code appears to work correctly when I run it (in R2023a), however I don’t have the signal so the load call throws an error. ...
13 days ago | 0