DaniSb170 / nctoolbox

Automatically exported from code.google.com/p/nctoolbox
0 stars 0 forks source link

Let's document the best way to permanently include nctoolbox to your matlab path #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Several users have asked me: how do I have nctoolbox start each time I use 
matlab without running setup_nctoolbox.m?

I put these lines in my startup.  Is there a better way?

    nctoolbox_dir='c:/cygwin/home/rsignell/distro/nctoolbox';
    addpath(fullfile(nctoolbox_dir, 'cdm'));
    addpath(genpath(fullfile(nctoolbox_dir, 'cdm', 'utilities')))
    d = dir(java_dir);

      for i = 1:length(d)
        name = java.lang.String(d(i).name);
        if name.endsWith('.jar') & ~name.startsWith('.')
          javaaddpath(fullfile(java_dir, d(i).name));
        end
      end

Whatever is the best way, let's add that to the documentation

Original issue reported on code.google.com by rsignell on 2 Apr 2012 at 1:51

GoogleCodeExporter commented 8 years ago
In startup

addpath(nctoolboxdir)
setup_nctoolbox

Original comment by bschlin...@gmail.com on 2 Apr 2012 at 3:17

GoogleCodeExporter commented 8 years ago
Cool.  Can you please add that to the install instructions?  It seems kind of 
obvious in hindsight, but...

Original comment by rsignell on 2 Apr 2012 at 3:21

GoogleCodeExporter commented 8 years ago
Instructions were added to README file in nctoolbox.

Original comment by bschlin...@gmail.com on 10 Apr 2012 at 6:47

GoogleCodeExporter commented 8 years ago

Original comment by bschlin...@gmail.com on 10 Apr 2012 at 6:49

GoogleCodeExporter commented 8 years ago
I added comments to the wiki page also.

Original comment by rsignell on 10 Apr 2012 at 6:50