Skip to content
Snippets Groups Projects
Commit cfa682df authored by Olivier Sauter's avatar Olivier Sauter
Browse files

fix when no .x field

parent ce337deb
Branches
1 merge request!92fix when no .x field
Pipeline #63901 passed
......@@ -476,7 +476,7 @@ end
adata.value = adata.data;
% make sure orientation of .x maps 1st 2 dims if 2D
if sum([size(adata.x)~=1]) == 2 && sum([size(adata.data)~=1]) >= 2
if isfield(adata,'x') && ~isempty(adata.x) && sum([size(adata.x)>1]) == 2 && sum([size(adata.data)>1]) >= 2
if size(adata.x,1)==size(adata.data,2) && size(adata.x,2)==size(adata.data,1)
adata.x = adata.x';
if isfield(adata,'dim')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment