َQuick help

Hello sir:
can you help me
write a program in matlab to do the following
a) Draw a line using DDA algorithm
b) Draw a line using slope intercept equation
use switch case for these 2 cases.