How could I write in a vector something in a position different to a given one?
1 view (last 30 days)
Show older comments
Juan Manuel Hussein Belda
on 15 Oct 2021
Commented: Juan Manuel Hussein Belda
on 15 Oct 2021
v = [1,2,3,4,5]
idx = 3;
What I would like to do is get v = [NaN, NaN, 3, NaN, NaN];
How could I do it?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!