photo

Iskandar Ars


Last seen: 1 year ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Explorer
  • First Answer

View badges

Feeds

View by

Answered
how to insert an element into any index of vector?
v = 1:10; %new vector i = 5; % index to insert b = 15; % the number you want to insert v = [v(1:i-1) b v(i:end)] % insert

3 years ago | 1