To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I have values for three different variables Z ,X,Y : how can i get the least square regression equation of Z on X and Y
No products are associated with this question.
You could use either the regress() function or the LinearModel.fit() function.
In each case, you'll need to combine your X and Y values into one array (predictor variables) and use Z for the response variable.
I use John D'Errico's polyfitn(): http://www.mathworks.com/matlabcentral/fileexchange/34765-polyfitn