Constrained Least Square Fitting Let us try to understand the least square fitting method using an example: Example —Utpal Kumar (IES, Academia Sinica) IES CodersTweetEmailWhatsAppLike this:Like Loading... Related 2 thoughts on “Constrained Least Square Fitting” Add yours G=[ones(N,1),t]; what does it mean ones?. I don’t understand this expression… 😛 LikeLike Reply @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. LikeLike Reply Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (Address never made public) Name Website 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 ) Cancel Connecting to %s Notify me of new comments via email. Notify me of new posts via email.