I am using these lines to generate the value of Energy(E).
x=[1 2 3 4];
F=[ 12 45 78 45];
xx(:, j) = ;
FF(:, j) = ;
title('Energy v/s Displacement')
First of all this is taking a lot of time and I have to press 'ctrl+C' almost all the time. There is some error in program at line E=zeros(en) I dont know how is E getting converted to double?
thanks for ur ans