Skip to content

Getting Started

R-Broadley edited this page Jun 29, 2017 · 7 revisions

Use the following code to open your first activpal™ raw data file:

import activpal_utils.load_datx

[fileName, fileDir] = uigetfile( 'activPAL Files (*.dat, *.datx,)', ...
                                 'Select an activPAL data file' );

filePath = fullfile(fileDir, fileName);
Data = load_datx(filePath);

import activpal_utils.load_datx adds the function load_datx to your Matlab path.
uigetfile will open a GUI interface to select a file to open.
filePath = fullfile(fileDir, fileName) simply merges the result from uigetfile into a single path string.
Data = load_datx(filePath) opens the chosen file and stores the contents in Data.

Clone this wiki locally