Matlab code for 1 node analysis