increase value in vector
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lev Mihailov
le 3 Fév 2020
Réponse apportée : David Hill
le 3 Fév 2020
X=[102 103 116 145 108] %
iwant=[102 205 321 466 574] % what i need to get
% 102+103=205 ; 205+116=321 ;
for i=1:length(n)-1 % I tried to make such an option, but it does not work
X1(i)=X(i)+X(i+1)
end
Help, how can I do this better?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Biological and Health Sciences dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!