Robuta

https://se.mathworks.com/help/finance/busdate.html busdate - Next or previous business day - MATLAB This MATLAB function returns the scalar, vector, or matrix of the next or previous business days, depending on the definition for Holiday. business daynextpreviousmatlab