Remove the
i = i+1;
that immediately follows the while ,,, instruction.
otherwise, first time in to the loop you are trying to set x1(3) = (23 - x2(2) - 5*x3(2))/3, but you have yet to specify x2(2) and x3(2).
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!