12 Mar 2018 at 16:36
Matt J flagged Subscript Indices must either be real positive intergers or logicals - not sure where i'm going wrong. as Unclear
Please restore original question. OP has deleted code.
28 Feb 2018 at 10:49
Stephen Cobeldick flagged Can anyone explain this: P1(2:end-1) = 2*P1(2:end-1); ? as Not appropriate for MATLAB Answers
OP has changed the question, so that the answers do not make sense.