From 1df86f1b71ee7bae5567eee5d96a2016dd85ea1a Mon Sep 17 00:00:00 2001 From: vasnake Date: Wed, 2 Apr 2014 20:22:16 +0400 Subject: [PATCH] fixed: print X while testing --- ex2/test_costfunction_forums.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex2/test_costfunction_forums.m b/ex2/test_costfunction_forums.m index dbe45e1..7d50c5b 100644 --- a/ex2/test_costfunction_forums.m +++ b/ex2/test_costfunction_forums.m @@ -11,7 +11,7 @@ function test_costfunction_forums () % Me - non-square matrix example % I HAVE NOT VALIDATE THIS BY HAND % https://class.coursera.org/ml-005/forum/thread?thread_id=943#comment-3379 - X = magic(3)(1:2,:) + X = magic(3)(1:2,:); [J grad] = costFunction([1 2 3]', X, [4 5]'); assert( J, -109.928408, epsilon); assert( grad, [-18.000 -11.500 -23.000]', 1e-2);