Linear regression on log transformed data

A function that takes two column vectors and does linear regression on the data

You are now following this Submission

A function that takes two column vectors and does linear regression on the data. It assumes that the data is logged. It takes two column vectors, a description, x label and y label and does the linear regression. It then plots the data and outputs all the statistics (r-squared, OLS slope, RMA slope and 95% confidence intervals)

Cite As

Dr. Soumya Banerjee (2026). Linear regression on log transformed data (https://www.mathworks.com/matlabcentral/fileexchange/34152-linear-regression-on-log-transformed-data), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0