Tuesday, March 24, 2015

Matlab Statistic Tool Box regstats model trick

Simply discovered this trick as we speak.
When utilizing:

regstats(y,x)

Matlab will use the linear mannequin y=ax+b mannequin to suit the info and calculate all related statistical parameters.

However typically we need to repair the development line by way of zero, (zero,zero). In these case, this trick will assist:

regstats(y,x,1)

Now Matlab will use the linear mannequin y=ax mannequin to suit the info and calculate all related statistical parameters.

Do not know why. However it's examined on R2010b model and confirmed by evaluating with Excel calculation outcomes.

No comments:

Post a Comment