Problem:
In MATLAB coding, WHILE loop is used to compute the charge at time interval of 0.1 sec. and checking the conditions for Q < Qt.
The charge (Qt) at time 't' on capacitor (C) through resistance 'R' at source voltage (V) is given by: Qt = C.V(1- e(-t/RC)).
Write the MATLAB program in m-file and save it with the name 'CapacitorCharging.m'.