Somesh
2008-10-21, 13:54
MovAlyzeR records x,y coordinate data and pressure, tilt(optional) and stores them in .hwr files. These are simple space separated ASCII files and can be read into Matlab or any other programming environment.
Provided is a rudimentary example of how to read a raw hwr data file from MovAlyzeR into Matlab. Please check back soon for Matlab functions to read other files output from MovAlyzeR (tf, seg, ext, inc etc)
% This Matlab program reads the raw x,y,z and tilt data (azimuth and altitude)
% from the .hwr file recorded by MovAlyZeR(c). This data file can be accessed at the location
% UserRootDir\Experiment\Group\Condition\Subject\[.hwr file]
hwrdata = dlmread('C:\USR\EXP\GRP\CON\SUB\EXPGRPCONSUB01.HWR ');
% The columns of hwrdata have the raw coordinates, pressure and tilt information
x = hwrdata(:,1);
y = hwrdata(:,2);
z = hwrdata(:,3);
tilt_azimuth = hwrdata(:,4); <=== Optional in 4.9 and later
tilt_altitude = hwrdata(:,5); <=== Optional in 4.9 and later
% Now you can use the data as you like...
% eg : Plot x vs y
plot(x,y);
Provided is a rudimentary example of how to read a raw hwr data file from MovAlyzeR into Matlab. Please check back soon for Matlab functions to read other files output from MovAlyzeR (tf, seg, ext, inc etc)
% This Matlab program reads the raw x,y,z and tilt data (azimuth and altitude)
% from the .hwr file recorded by MovAlyZeR(c). This data file can be accessed at the location
% UserRootDir\Experiment\Group\Condition\Subject\[.hwr file]
hwrdata = dlmread('C:\USR\EXP\GRP\CON\SUB\EXPGRPCONSUB01.HWR ');
% The columns of hwrdata have the raw coordinates, pressure and tilt information
x = hwrdata(:,1);
y = hwrdata(:,2);
z = hwrdata(:,3);
tilt_azimuth = hwrdata(:,4); <=== Optional in 4.9 and later
tilt_altitude = hwrdata(:,5); <=== Optional in 4.9 and later
% Now you can use the data as you like...
% eg : Plot x vs y
plot(x,y);