From: Nauman on 26 Jun 2010 02:09 Hi, I'm trying to plot a mesh for the different \theta values (cost function) for my linear regression analysis. Just for a reminder, here's the definition of the function (assume t = \theta): J(t) = 1/2 * \sum[i=1:m] { ( h_t(X^i) - Y^i ).^2 } (Where X and Y are the input and output variable matrices and t (or theta) defines the parameters of regression model) I have created the different values for t using meshgrid(-5:0.125:5). I have no idea how to proceed creating the mesh values ... I'm a beginner to MATLAB and I'm posting this after two-days' searching. So, please guide me towards a resource if one is already available or help me with the question. Thank you. p.s. The J(t) function can be seen more clearly on page 4 here: https://docs.google.com/viewer?url=http://www.stanford.edu/class/cs229/notes/cs229-notes1.pdf And the mesh plot that I want to create can be seen at 26:20 here: http://www.youtube.com/watch?v=5u4G23_OohI p.p.s. I'm not a formal student and this isn't a homework assignment. So, 1) I'm not asking for help with homework and 2) I don't have a professor/TA to talk to. So, I really do need the help :)
|
Pages: 1 Prev: sparse matrices,characteristic polynomial Next: ycbcr skin color for simulink |