how to make a trend line cross (0,0)?

hello, I've made a trend line using polyfit and polyval. Now i need to make that linear regression cross (0,0). thanks

3 Comments

ahh a constraint!
Oh... I was thinking they had the coefficients from "polyfit" and all they needed to do was change the last coefficient to 0. I was wondering how that could be useful... =/
@Elige, ahh you could be right. Sigh, that takes all the fun out of it.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 22 Feb 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!