I use AccelStepper to setup my stepper, how to run the particular speed for a while,when the stepper decelerate.
I don't understand your question and there are two many possibilities to make a guess.
Have you tried to do what you want - if so post your code and it will be easier to help.
...R
Stepper Motor Basics