PROJECT HELP NEEDED

We are doing a simple project on the topic "Speed control of D.C. motor using arduino 2560 and simulink" using a simple 12V motor.
which motor driver can be used for this project, L293D or L298N?
And what will be the coding for running the motor.

AakashGauRav:
which motor driver can be used for this project, L293D or L298N?

Either, but both are old technology and you should maybe look for something more efficient.

AakashGauRav:
And what will be the coding for running the motor.

Pick a driver then read the manufacturer’s datasheet which will tell you what you need to send to the chi’s pins to control the motor. Then you should be able to see what your sketch needs to do to the Arduino pins.