Yes, you can design the Matlab code for time-delay system as an finite dimensional system (2D, 3D, ... more).
For example, you can use the solver function dde23, (or ddesd, or ddensd) depending on the type of delay in your system equation. You may be guided by the following link to prepare and process your problem
I agree all the dde, ddesd etc. instructions from Matlab. Further, it is possible to use the method "integration through steps" that use just ode-type instructions from Matlab (ordinary differential equations), but require a little bit of programming.