//Example 7 // ENERGY clc; clear; close; es=1;//joule l=2;//metre am=3;//cm am1=5;//cm e1=(am1^2/am^2)*es;//joules l2=1;//meter e2=(l/l2)*es;//joules disp(e1,"energy in first case is,(joules)=") disp(e2,"energy in second case is,(joules)= ")