Controlling a stepper with MATLAB
Adafruit Motor Shield V2 itself generates signals that are required for motor control.

ULN2003 motor driver module requires signals at the input. This is a significant difference.

Example of use this driver with MATLAB. Not need to flash Arduino any libraries.

a=arduino('com3','uno);

pins={'D8', 'D9', 'D10', 'D11'};
steps={'1100', '0110', '0011','1001'};

steps_size=size(steps,2);                        %steps = 4

for i = 1:50

    step = steps{mod(i,steps_size)+1};      % step=1,2,3,4

    for j=1:4
        writeDigitalPin(a, pins{j}, str2double(step(j)));
    end

    %pause(0.01);

end


Wiring example (Copied from CheapStepper v0.2)