How could I write in a vector something in a position different to a given one?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Juan Manuel Hussein Belda
am 15 Okt. 2021
Kommentiert: Juan Manuel Hussein Belda
am 15 Okt. 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!