diff --git a/examples/cnn_train.m b/examples/cnn_train.m index 99edd5db..1aac3e37 100644 --- a/examples/cnn_train.m +++ b/examples/cnn_train.m @@ -93,7 +93,7 @@ % setup error calculation function hasError = true ; -if isstr(opts.errorFunction) +if ischar(opts.errorFunction) switch opts.errorFunction case 'none' opts.errorFunction = @error_none ;