user39696: I am trying to control a 28BYJ-48 stepper motor + ULN2003 motor driver module  (this is a picture) using MATLAB.
I tried to follow the instructions on this page, but these instructions are specific to Adafruit MotorShield, and I couldn't understand how to modify the code to fit my motor/driver. 
Specifically:

How do I wire my motor/driver/Arduino?
How do I modify this command: 
shield = addon(a, 'Adafruit\MotorShieldV2')

Do I need to flash my Arduino with any libraries?


user32827: 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)


39696: <p>I am trying to control a 28BYJ-48 stepper motor + <a href="https://www.gearbest.com/sensors/pp_599743.html?vip=2665035&amp;gclid=Cj0KCQiAuZXQBRDKARIsAMwpUeROrehL2AfI3oWRb8Yw7jRadlRIDHFX0nwG455NeteX9R43xRfrP58aAlx_EALw_wcB" rel="nofollow noreferrer">ULN2003 motor driver module</a>  (this is a <a href="https://cdn.instructables.com/F41/07VI/HMMF4YXL/F4107VIHMMF4YXL.MEDIUM.jpg" rel="nofollow noreferrer">picture</a>) using MATLAB.</p>

<p>I tried to follow the instructions on <a href="https://www.mathworks.com/help/supportpkg/arduinoio/ug/control-motors-using-adafruit-motor-shield-v2.html?searchHighlight=shield&amp;s_tid=doc_srchtitle" rel="nofollow noreferrer">this page</a>, but these instructions are specific to Adafruit MotorShield, and I couldn't understand how to modify the code to fit my motor/driver. </p>

<p>Specifically:</p>

<ol>
<li>How do I wire my motor/driver/Arduino?</li>
<li><p>How do I modify this command: </p>

<pre><code>shield = addon(a, 'Adafruit\MotorShieldV2')
</code></pre></li>
<li><p>Do I need to flash my Arduino with any libraries?</p></li>
</ol>
 32827: <p><a href="https://cdn-learn.adafruit.com/assets/assets/000/009/536/original/adafruit_products_mshieldv2schem.png?1396892649" rel="nofollow noreferrer">Adafruit Motor Shield V2</a> itself generates signals that are required for motor control.</p>

<p><a href="http://www.ti.com/lit/ds/slrs027o/slrs027o.pdf" rel="nofollow noreferrer">ULN2003 motor driver module</a> requires signals at the input. This is a significant difference.</p>

<p><a href="http://forum.arduino.cc/index.php?topic=357907.0" rel="nofollow noreferrer">Example</a> of use this driver with MATLAB. Not need to flash Arduino any libraries.</p>

<pre><code>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
</code></pre>

<p>Wiring example (Copied from <a href="https://github.com/tyhenry/CheapStepper" rel="nofollow noreferrer">CheapStepper v0.2</a>)
<img src="https://i.stack.imgur.com/HohPT.png" alt="Copied from [CheapStepper v0.2]"></p>
