Skip to content

Instantly share code, notes, and snippets.

@ragavsathish
Created July 23, 2016 16:17
Show Gist options
  • Select an option

  • Save ragavsathish/d0142c99d95e427ff66ea0caf067546b to your computer and use it in GitHub Desktop.

Select an option

Save ragavsathish/d0142c99d95e427ff66ea0caf067546b to your computer and use it in GitHub Desktop.
cell2objects
function out = cell2gobjects(c)
out = gobjects(size(c));
if numel(c) == 1
return
end
for i = 1 : numel(c)
out(i) = c{i};
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment