diff --git a/matlab/swz/cstz/csminwel.m b/matlab/swz/cstz/csminwel.m index 0409569de..f32c03533 100644 --- a/matlab/swz/cstz/csminwel.m +++ b/matlab/swz/cstz/csminwel.m @@ -25,7 +25,7 @@ dispIndx = 0; % 1: turn on all the diplays on the screen; 0: turn off (Added b [nx,no]=size(x0); nx=max(nx,no); -NumGrad= ( ~isstr(grad) | length(grad)==0); +NumGrad= ( ~ischar(grad) | length(grad)==0); done=0; itct=0; fcount=0;