Skip to content

Instantly share code, notes, and snippets.

@morganp
Created November 17, 2011 17:06
Show Gist options
  • Save morganp/1373769 to your computer and use it in GitHub Desktop.
Save morganp/1373769 to your computer and use it in GitHub Desktop.
Matlab cells end+1 trick
names = {};
for i=1:10
names{end+1} = 'string';
end
%% http://stackoverflow.com/questions/2288899/cell-array-appending-in-matlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment