title: matlab plotting linear regression on a 3D scatter plot
body: <p>I am new to matlab and have just started on the UBC AI course. I used the least squares algorithm to generate the weights for the <a href="http://neuron-ai.tuke.sk/vascak/predmety/UI/test1.txt" rel="nofollow noreferrer">data-set</a> I'm working with and the weights ive generated are <code>[ 0.3400 ,-0.0553 , -0.0667]</code>. </p>
  
  <p>Using the weights generated I predicted the value of y against the current data set (predictions are shown as x and the actual values are shown as circles). This brings me to the problem of trying to visualize the regression plane using the weights and the data I have. So basically my problem is how do you visualize the linear regression plane using the data I now have collected, or am I missing something?</p>
  
  <p>and do the weights generated correspond to the y-intercept, slope and its orientation? If so how do they fit into the 2D plane equation?</p>
  
  <p><img src="https://i.stack.imgur.com/LnnOa.jpg" alt="enter image description here"></p>