From 33895b011a85bc9f8455095d4cb136f8dd246a36 Mon Sep 17 00:00:00 2001 From: "Q.Peng" Date: Mon, 22 May 2017 16:14:27 +0800 Subject: [PATCH] fix Undefined function 'isnan' error Signed-off-by: Q.Peng --- +sample/dummy_GUI.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+sample/dummy_GUI.m b/+sample/dummy_GUI.m index 2bc4ab6..607db83 100644 --- a/+sample/dummy_GUI.m +++ b/+sample/dummy_GUI.m @@ -13,7 +13,7 @@ function Plot(this, src, data) features = [features; currentBest.Features]; end - if(isnan(this.Handle)) + if(isequaln(this.Handle, NaN)) this.Handle = figure; end figure(this.Handle);