From e799ba5619e466cdca545f11bb37a09d639ce354 Mon Sep 17 00:00:00 2001 From: Antoine Merle <Antoine.Merle@epfl.ch> Date: Mon, 9 Jul 2018 13:09:01 +0000 Subject: [PATCH] Make sure gdat_request is a string (not a cell array). git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@10362 d63d8f72-b253-0410-a779-e742ad2e26cf --- crpptbx/gdat_plot.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crpptbx/gdat_plot.m b/crpptbx/gdat_plot.m index a044a574..58546d0c 100644 --- a/crpptbx/gdat_plot.m +++ b/crpptbx/gdat_plot.m @@ -50,7 +50,8 @@ if all(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty( fighandle = figure(abs(doplot)); hold all end - if isfield(gdat_data,'gdat_request') && strcmp(gdat_data.gdat_request,'eqdsk') + if isfield(gdat_data,'gdat_request') && ischar(gdat_data.gdat_request) ... + && strcmp(gdat_data.gdat_request,'eqdsk') % special case, plot contours of first equil endstr = ''; if iscell(gdat_data.eqdsk); endstr = '{1}'; end -- GitLab