Hello, I was wondering if there is an easy way to find the slope and intercept of a line using MATLAB, like how it is so easy with Excel where you just plot the data and add a trendline, so then it will tell you the slope and intercept. Here is my code
tau = [15, 38, 100, 300, 1200];
CA = [1.5 1.25 1 0.75 0.5];
CA0 = 2;
dCdt = log((CA-CA0)./tau);
I have a theory that says ln((CA-CA0)/tau) = ln(k) + alpha(ln(CA)), and I want to find alpha and ln k, which is my slope and intercept, respectively.