From da61458e0dc66fc7e79f083650c64b5c436578a0 Mon Sep 17 00:00:00 2001 From: vasnake Date: Tue, 1 Apr 2014 20:29:32 +0400 Subject: [PATCH] added: another computeCost test --- ex1/test_computeCost.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ex1/test_computeCost.m b/ex1/test_computeCost.m index a965f99..f17aadb 100644 --- a/ex1/test_computeCost.m +++ b/ex1/test_computeCost.m @@ -5,4 +5,8 @@ function test_computeCost () a = 7.0175; assert(x, a, epsilon); + x = computeCost( [1 2; 1 3; 1 4; 1 5], [7;6;5;4], [0.1;0.2] ); + a = 11.9450; + assert(x, a, epsilon); + endfunction