Code covered by the BSD License  

Highlights from
MATLAB Support Package for Parallax BASIC Stamp

image thumbnail

MATLAB Support Package for Parallax BASIC Stamp

by

 

25 Jul 2011 (Updated )

MATLAB library for communicating with a BASIC Stamp 2 and Board of Education (BoE) kit

stamp.setup
% setup
% Setup function for the MATLAB Support Package for BASIC Stamp. Mostly
% adds the +stamp directory to the MATLAB search path so it can be accessed
% from anywhere. Please read README.pdf before running this function to see
% other necessary installation steps.

%   MATLAB Support Package for BASIC Stamp
%   Version 1.0
%   Copyright 2011 The MathWorks, Inc.

function setup

%% add package to MATLAB path
packageParentDir = fileparts(fileparts(mfilename('fullpath')));
addpath(packageParentDir);
fprintf('Added "%s" to MATLAB path\n', packageParentDir);

%% save the path
result = savepath;
if result==1
    error('stamp:SavepathFailed',['Unable to save updated MATLAB path' char(10)...
        '  To save the path, you can: ' char(10)...
        '   1) Exit MATLAB ' char(10)...
        '   2) Right-click the MATLAB icon and select "Run as administrator" ' char(10)...
        '   3) Re-run stamp.setup ',]);
else
    fprintf('Saved updated MATLAB path\n');
    fprintf(['Setup was successful.\n' ...
        'You can now use the MATLAB Support Package for BASIC Stamp.\n']);
end

end

Contact us