Let us try to understand the least square fitting method using an example:
—Utpal Kumar (IES, Academia Sinica)
Mathematical Methods, matlab
Academia Sinica, Code the Data, constraint, deviation, function, G, graph, IES, kernel, linear fit, model, predicted, residual, scatter, Utpal, Utpal Kumar
October 21, 2016 at 8:12 am
G=[ones(N,1),t]; what does it mean ones?.
I don’t understand this expression… 😛
October 21, 2016 at 8:28 am
@Rocio: “ones” is a function in MATLAB that creates a matrix of values 1. Here, ones(N,1) will create a N (rows) x 1(column) matrix of 1. G is the matrix of coefficient values of the model. For fitting a straight line, the model is v = 1.m1 + t.m2.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Powered by WordPress.com.