strel('ball',radius,height)

Type this into matlab and it will display a matrix:

strel('ball',5,10)


The first matrix you get is the area and size of the ball as a matrix. The second matrix is the height of the each element of the ball.

Ball structuring element representation
I want to run 20A constant current and 4.2V on a load using a variable DC power supply rated as 20A, 30V. But because my power supply is a switching CC, Cv type, and it kept switching to CV at only 1.2A. I really want to run it at 20A and 4.2V (CC, CV) on the same load despite the change of resistance of the load.

I will really appreciate step by step instruction on how to achieve that, if using resistors etc. In more details, the load is a 3.75V, 1000mAh battery and this battery is designed to take this much load for only 3 minutes to recharge. Currently the battery is on the nominal voltage checked using a multimeter.
