Controlling the parallel port by Matlab

I think that these codes may help you:
parport=digitalio('parallel','LPT1');
line=addline(parallel,0:6,'in'); %controlling only these 7 pins for input data,you can use 'out'
a=[0 1 1 1];
putvalue(parport,a);
 
Top