Skip to content

Instantly share code, notes, and snippets.

@apleonhardt
Created February 25, 2013 12:18
Show Gist options
  • Save apleonhardt/5029472 to your computer and use it in GitHub Desktop.
Save apleonhardt/5029472 to your computer and use it in GitHub Desktop.
% Set up our new object locally:
my_object = gnode.new_object(g, 'analogsignal', 'name', 'My shiny new object', ...
't_start', struct('units', 'ms', 'data', 0), ...
'sampling_rate', struct('units', 'Hz', 'data', 10000), ...
'signal', struct('units', 'mV', 'data', [10 10.2]);
% Create and upload:
my_new_object = gnode.get_created(g, my_object);
% Share with others:
gnode.share(g, my_new_object, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment