How could I write in a vector something in a position different to a given one?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Juan Manuel Hussein Belda
le 15 Oct 2021
Commenté : Juan Manuel Hussein Belda
le 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!