use ii instead of i since i is built into matlab for complex numbers
You also might have to change your
x(ii,:) = linprog(f, A(ii,:),b,, , lb)
Though I do feel that your program was running right just that you were only seeing the last A which will be 1x30 since it was being overwritten.
to see if you are going through the loop
just output ii