changeset 6899:2337b97f884f octave-forge

Use default arguments
author hauberg
date Sat, 20 Mar 2010 19:56:09 +0000
parents 8b43b6518b77
children f07d2dc7c3bf
files main/econometrics/inst/mle_obj.m
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/econometrics/inst/mle_obj.m	Sat Mar 20 19:55:20 2010 +0000
+++ b/main/econometrics/inst/mle_obj.m	Sat Mar 20 19:56:09 2010 +0000
@@ -19,11 +19,10 @@
 ## This is for internal use by mle_estimate
 
 
-function [obj_value, score] = mle_obj(theta, data, model, modelargs, nslaves)
+function [obj_value, score] = mle_obj(theta, data, model, modelargs, nslaves = 0)
 
 	n = rows(data);   
 	
-	if nargin < 5 nslaves = 0; endif
 	if nslaves > 0
 		global NSLAVES PARALLEL NEWORLD NSLAVES TAG;