I have tried contacting Matlab but have unfortunately had no success in getting a reply in their forum, so I thought I give it a try here. I just need to find somebody who has worked with Accel Stepper and Matlab before and I reckoned that would be easier in the Arduino Forum.

For example, I am not sure if I should upload adio.pde adioe.pde or adioes.pde for my needs.

Which of those sketches includes the AccelStepper library?

It does not say anything about Accel Stepper in the readme file, just the following :

"The following sketches are provided with the package:

-) adio.pde : analog and digital IO, plus basic serial commands only

-) adioe.pde : adio.pde + encoders support

-) adioes.pde : adioe.pde + servo support

-) motor_v1.pde : adioes.pde + afmotor v1 shield

-) motor_v2.pde : adioes.pde + afmotor v2 shield

In most cases the adioes.pde will cover all you need. The last two sketches

are needed for the Adafruit Motor Shield (version 1 and 2 respectively)."

I am not using the motor shield though, but two Big Easy Driver.

2nd) I got some idea how the code would have to look like in the Arduino program

One of those three you listed above?

I meant I have a few lines of code written together in the Arduino that make my Motors turn the way I want with the help of Accel Stepper, just something along the lines of

"#include <AccelStepper.h>

// Define two steppers and the pins they will use

AccelStepper stepper1(1, 9, 8 );

AccelStepper stepper2(1, 7, 6 );

void setup()

{

stepper1.setMaxSpeed(1000);

stepper1.setSpeed(1000);

stepper2.setMaxSpeed(1000);

stepper2.setSpeed(1000);

}

void loop()

{

stepper1.runSpeed();

stepper2.runSpeed();

} "

but now that I have to use Matlab- would I have to change it into Matlab "speak"?

Why do you HAVE to use Matlab, and what is "matlab-speak"?

I am using the Arduino within an experimental setup and other parts of that setup require to run the whole thing in Matlab, unfortunately. With Matlab speak and that question I was just wondering if when I use Matlab do I have to change the above code to align with Matlab programming language?

Thanks for your help!