Hi Christos,
It is right this command:
c = zeros(1:nx,1);
You should have used:
c = zeros(nx,1);
Best.
It is right this command:
c = zeros(1:nx,1);
You should have used:
c = zeros(nx,1);
Best.