Displaying 1 result from an estimated 1 matches for "robustdemo".
2007 Nov 21
1
equivalent of Matlab robustfit?
...moves them.
Example:
x = (1:10)';
y = 10 - 2*x + randn(10,1); y(10) = 0;
bls = regress(y,[ones(10,1) x])
brob = robustfit(x,y)
scatter(x,y)
hold on
plot(x,brob(1)+brob(2)*x,'r-', x,bls(1)+bls(2)*x,'m:')
See also REGRESS, ROBUSTDEMO.