% This startup file is run when MATLAB starts
% This file should go in Documents\username (windows)

% Ignore p-code warnings
warning('off','MATLAB:oldPfileVersion') 

% Edit for correct paths

%If you don't need to add to the menu, you can just run this:
%run('C:\Program Files\DIPimage 2.3\dipstart.m')

%Otherwise:
diproot = 'C:\Program Files\DIPimage 2.3\common\';
addpath([ diproot 'dipimage']); 

%Add the subdirectories where MATLAB will look for m-files
dipshare='N:\MATLAB\';
addpath([ dipshare 'SPT']);
%addpath([ dipshare 'SPT']); % add more directories like this.


%Here is where DIPimage looks for your fuctions to go into the Menu 
dipsetpref('CommandFilePath',...
    [dipshare 'SPT;'])

%Setup some defaults for display windows
dipsetpref('DefaultMappingMode','lin');
dipsetpref('TrueSize','off')
set(0,'DefaultFigurePaperType','US Letter');


%edit path
dipsetpref('ImageFilePath','C:\Program Files\DIPimage 2.3\images\');

dip_initialise;
%If you want the menu on startup
dipfig -unlink
dipimage




