when i use regress(x,y),I obtain only one answer :shouldn't i get two answers which are the slope and y-intercept ?
my code is x=[1 4 5 6];y=[4 6 7 9]
Direct link to this comment:
Duplicate question here: http://www.mathworks.com/matlabcentral/answers/77739-regress-x-y-for-least-square-regression-of-two-variables-x-y. Let's keep the discussion there.
No products are associated with this question.
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries