Multivariate regression

i have written the code for multivariate regression and it is giving the values of final theta. but not able to plot the graph for error function.
plot of error function is being displayed blank,
please help me out with it.