Matlab interface

I'm using a matlab interface to communicate with Arduino. My problem is that I would like to have access to the adafruit motor shield library and basic commands like digital write at the same time. The normal I/O sketch allows the basic commands and the motor shield sketch allows the stepper commands. Is there a way I can use both at the same time?

you need to extend the sketch with the basic commands to include your needed calls to the ada-lib.

So basically joining the two?

yes, it is as simple (or complicated) as that