From 47ca9b628d1b2c4acff675e9a60f5c655ae471c8 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Sun, 26 Sep 2010 12:52:51 +0200 Subject: [PATCH] replace deprecated Matlab function isstr with ischar --- matlab/swz/cstz/csminwel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;