I have collected the files you submitted for the parts of the portfolio re-balancing problem from the lab here. I have also written up my solution and posted the MATLAB files I used.
Next week, we can look at how the optimal cost depends on the weight variation constraint.