OctaveTutorialBasicoperationsMachineLearningOctaveTutorialMovingdataaroundMachineLearningOctaveTutorialComputingondataMachineLearningOctaveTutorialPlottingdataMachineLearningOctaveTutorialControlstatements:for,while,ifstatementsMachineLearningOctaveTutorialVectorialimplementationMachineLearningVectorizationexample.Unvectorizedimplementationprediction=0.0;forj=1:n+1,prediction=prediction+theta(j)*x(y)end;Vectorizedimplementationprediction=theta’*x;Vectorizationexample.Unvectorizedimplementationdoubleprediction=0.0;for(intj=0;jn;j++)prediction+=theta[j]*x[y];Vectorizedimplementationdoubleprediction=theta.transpose()*x;Gradientdescent(forall)(forall)