I can round the elements of A to the nearest integers greater than or equal to A

ceil(A)

But what about if I want to round it to the nearest 50 greater than or equal to A?

For example, given the following A array,

A=[24, 35, 78, 101, 199];

A subroutine should return the following

B=Subroutine(A)=[50, 50, 100, 150, 200];
Edit
Report