I have written a code which is something like that
clc
X = input('Molefraction of Al in system:');
n=input('no of well:');
width=zeros(1,50);
for j=1:(2*n+1)
width(j,:)=input('length of areas:');
end
del_eg=1.247*X;
V1=0.6*del_eg;
V=zeros(1,100);
for j=1:n...