How to find the width of a peak where there is no actual data, just individual points?
Ältere Kommentare anzeigen
I am trying to obtain the width at the half maximum location of the peak displayed in the figure. I have already found the location of the half max and have depicted it with dotted lines. Now, I would like to calculate the width inside that peak at the specified height. I would just get the intercept of the blue line and the dotted line and calculate it but since there is no actual data in the blue line, just a straight line connecting the individual points, I am not sure how to do it.
clear; clc; clf; close all;
xdata = [0 0.012 0.03 0.051 0.08 0.11 0.15];
ydata = [0.060583 0.098032 0.1407 0.40137 0.1407 0.098032 0.060583];
halfMax_y = 0.20069;
maxLocation_x = 0.051;
figure;
plot(xdata, ydata, 'o-');
hold on;
yline(halfMax_y, 'k--');
xline(maxLocation_x, 'k--');
I would like to find this distance, you can assume that the units of the x axis are distance in meters:

If somebody has an idea on how to do it I would really appreciate it. And if it can also be kept as simple as possible because I am a beginner I appreciate it. I have seen a couple peak processing toolbox online but I am not experienced with those options.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

