A = [1 3 5 6 7 13]
I want to insert 0 in the 1st cell resulting in
A=[0 1 3 5 6 7 13]
Thanks
A = [0 A]; %build new array
Or:
A(2:end+1) = A; %shift over and zero A(1) = 0;
Direct link to this answer:
http://www.mathworks.nl/matlabcentral/answers/42777#answer_52605
Contact us
0 Comments