title: Performing linear regression on a log-log (base 10) plot Matlab
body: <p>I have two sets of data: Peak Velocity and Amplitude. The relation between the two parameters is not linear and I used a logarithmic (base10) plot before performing linear regressions (this process is supposed to be equivalent to a power law fit).</p>
  
  <p>However, when I have the data plotted in a log-log scaled graph (both axes in logarithmic scale) the linear fit does not appear to me to be linear. How can I perform a linear regression in a log-log graph with Matlab. </p>
  
  <p>I have attached a picture of the graph and the linear fitting that I obtained. </p>
  
  <p>Any help is much appreciated!</p>
  
  <p>Thank you in advance!</p>
  
  <p><img src="https://i.stack.imgur.com/0wFdr.jpg" alt="enter image description here"></p>