From ff07a68be251b0a02b151e701b158177bd88f99f Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Wed, 28 Oct 2015 07:50:00 +0000 Subject: [PATCH] add dim if not existing git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@5190 d63d8f72-b253-0410-a779-e742ad2e26cf --- crpptbx/gdat.m | 1 + 1 file changed, 1 insertion(+) diff --git a/crpptbx/gdat.m b/crpptbx/gdat.m index bd2c03f0..64692c2f 100644 --- a/crpptbx/gdat.m +++ b/crpptbx/gdat.m @@ -166,6 +166,7 @@ try catch warning(['problems calling gdat_' lower(machine_eff)]); if ~exist('gdat_data'); gdat_data.data = []; end + if ~isfield(gdat_data,'dim'); gdat_data.dim=[]; end if ~exist('gdat_params'); gdat_params.plot = []; end if ~exist('error_status'); error_status = 998; end return -- GitLab