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
Retreive standard deviation from noise
If you have some idea of the characteristics of the underlying signal (assuming that there is a signal with white noise added to...

1 hour ago | 0

Answered
Axes of polar plot
I cannot run that code (no data), however in PolarAxes Properties see the section on Layer. Perhaps Ax = gca; Ax.Layer = '...

2 hours ago | 0

Answered
Calculating roots of an equation in Matlab.
When you delcared ‘a’ as symbolic, you cleared its numeric value. Try this — a = 2 kepa = 3/13 lambda = 9 b = -log(kepa)...

20 hours ago | 1

Answered
Number of peaks in the interval
A simpler way (if you have the Signal Processing Toolbox) would be to use the buffer function to segment the vector. Then, simp...

21 hours ago | 0

| accepted

Answered
Can I parse a text file with dates and data using readmatrix or readtable?
It would help to have the file to experiment with. I would just use readtable with no other name-value pairs, and see the res...

21 hours ago | 0

Answered
Trying to plot an estimate of a surface with plot3
Use the surf or mesh functions to plot a surface matrix. Try this — f = @(x,a) a(1)*x+a(2); x = [0.558755760368664;0.83525...

1 day ago | 1

| accepted

Answered
How to calculate the area under two peaks?
I am not certain what you want to do, however findpeaks is likely not necessary here. There are 3 distinct minima, so use the...

1 day ago | 1

Answered
how to insert data into matlab
With R2015a use the xlsread function to import the data. Get all of the outputs in case there is column header information that...

2 days ago | 0

Answered
butterworth filter gain higher than zero
The problem is that the plots provided by either fvtool or freqz do not use the scaling factor (‘glow’ here). Plot them separ...

2 days ago | 0

| accepted

Answered
Contour Plot Wrong Colors
I get a slightly different result when I use ‘torquev’ and ‘rpmrangev’ to define the interpolation grids, so that may be the pro...

2 days ago | 0

Answered
the legend is not working properly
My guess is that you have an AMD graphics card, and have not updated the graphics drivers in a while. (This sort of legend prob...

2 days ago | 1

| accepted

Answered
How can I limit the load function?
I am not certain what you want, however one option is to Load List of Variables into Structure Array You can then limit the va...

3 days ago | 0

Answered
How to combine a marker to a line and show in legend?
Insteaqd of using separate line and scatter calls, use plot. Specifically, see LineSpec.

3 days ago | 0

| accepted

Answered
FFT from .csv voltage and current data file
These are not easy files to work with. That is likely the problem. Try this — C1 = readcell('https://www.mathworks.com/mat...

3 days ago | 0

| accepted

Answered
how to import csv file with along with its headers in the matlab?
You don’t say what Release you’re using, however in R2022a the readtable function seems to do exactly what you want — T1 = rea...

3 days ago | 0

| accepted

Answered
Fourier series fit to a periodic function with multiple frequencies
Adding a second function will change the baseline, for example — t = linspace(0, 10, 1000); s = sum((1./[1;3;5]).*sin([1;3;5]...

4 days ago | 0

Answered
Get the data points after smoothening the plot
I am not certain what you are asking. Try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_f...

4 days ago | 0

| accepted

Answered
fft function error while extracting EEG signals in EDF file
According to the edfread documentation, the ‘data’ are the first output, not the second. The assignments should probably be: ...

4 days ago | 1

| accepted

Answered
How to determine an y value at a specific x value?
Since ‘sm1’ is a function of ‘W1’ this is not as straightforward as it might at first appear. v1=0.034; %viskozite yağ için...

4 days ago | 1

| accepted

Answered
Plot is not lined up with the X axis
I am not certain what the problem is. Using plot with only one argument plots the argument with respect to the indices of the a...

4 days ago | 0

| accepted

Answered
using GA including a hybrid function option
In the optimoptions call, the 'HybridFcn' name-value pair must have a function handle to they hybrid function as its value. I...

4 days ago | 0

| accepted

Answered
Plotting sine wave valley to valley
Perhaps something like this — t = linspace(0, 1, 250); freq = 5; s = sin(2*pi*t*freq + 3*pi/2); figure plot(t,s) grid ...

5 days ago | 0

Answered
display comma in xlabel
In the NumericRuler Properties documentation see TickLabelFormat to understand how to put the comma thousands separator in the t...

6 days ago | 0

| accepted

Answered
How to retrieve the fit and confidence bounds values, plotted in the graph upon using fitlm function?
That is one of the 'line' objects, however getting the information from it is not straightforward. Itis easier to just use the ...

6 days ago | 0

Answered
Legend command not working when plotting figure
I am surprised that the legend call did not throw an error. It did when I tried to run the code: ElectronEnergy = (1:100:1000...

7 days ago | 0

| accepted

Answered
How to mark labels on sampling points
I have no idea what you want to plot. Try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_f...

8 days ago | 0

Answered
How can I resample data with multiple time column?
One approach — M = [ 19 1 1 0 0 0 1009.4 28.9 71.0 0.0 0.0 0.0 0.0 19 1 1 0 0 30 1009.4 28.8...

8 days ago | 0

| accepted

Answered
How to find x value for a known y in array plot?
Possibly: idx = find(diff(sign(y - 0.8*max(y)))); xvals = x(idx) That should find the closest indices to all of them.

9 days ago | 0

| accepted

Answered
how to connect the upper points of a sine curve by making them a curve?
Use the envelope function (R2015b and later) in the Signal Processint Toolbox. Perhaps: envup = envelope(y); The function ...

9 days ago | 1

| accepted

Answered
Not getting curve in my graph
‘Any ideas?’ Yes. Subscript ‘theta’ and all the argument vectors using the loop index ‘i’ rather than ‘n’. n=100; s=ze...

10 days ago | 1

| accepted

Load more