|
|
| setupmobile |
function setupmobile
%SETUPMOBILE Adds directory where sensorgroup functionality resides to MATLAB path.
% SETUPMOBILE Adds directory where sensorgroup functionality resides to
% MATLAB path by adding the directory to the MATLAB path in the user's
% startup.m file. If the user does not have a startup.m file, one is
% created.
% Copyright 2013 The MathWorks, Inc.
installedDir = fileparts(which('setupmobile'));
mainfilePresent = exist(fullfile(installedDir, 'sensorgroup.m'), 'file') == 2;
if ~mainfilePresent
error('MATLAB:setupmobile:sensorgroupNotPresent', 'sensorgroup.m is missing');
end
addpath(installedDir);
savePathStatus = savepath;
matlab.apputil.install('Mobile Sensor Explorer.mlappinstall');
if savePathStatus == 0
delete(fullfile(installedDir, 'Mobile Sensor Explorer.mlappinstall'));
delete(fullfile(installedDir, char([mfilename, '.m'])));
else
warning('setupmobile was trying to add %s to pathdef.m but couldn''t succeed.\nPlease consider adding %s to the path manually.', ...
installedDir, installedDir);
end
% Display our main example as a getting started guide.
fprintf(' Installation finished.\n');
fprintf(' To see a demonstration start Mobile Sensor Explorer app or run %s command.\n', ...
'<a href="matlab:MobileSensorExplorer">MobileSensorExplorer</a>');
fprintf(' More examples: \n <a href="Examples/html/CapturingAzimuthRollPitchExample.html">Example of Capturing of Azimuth, Roll and Pitch</a>\n');
fprintf(' <a href="Examples/html/CapturingAndMappingGPSExample.html">Example of Capturing and Mapping GPS</a>\n');
fprintf(' <a href="Examples/html/StepCounter.html">Example of Step Counting with Acceleration Data</a>\n');
end
|
|
Contact us