Been trying to find a way to automate the process of identifying the gas exchange threshold when plotting VCO2 over VO2. Most seem to do it visually but a 2019 paper (PMID: 31699973) used MATLAB code to identify the inflection point (lsqcurvefit) and run linear regression above and below the inflection (film) to identify a similar threshold while plotting VO2 over watts. Any suggestions/input would be helpful.