could anyone help me to solve the issue
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jaah navi
le 13 Sep 2019
Modifié(e) : madhan ravi
le 13 Sep 2019
A=[2.1 2.2 2.3 2.4 2.5 2.6]
B=[0.49 0.48 0.47 0.47 0.47 0.47]
I want to have the desired result
A=[2.1 2.2 2.3 2.3 2.3 2.3]
As B has the same values starting from third place, A needs to have the value 2.3 at the same third place and it should be continued until the end.
0 commentaires
Réponse acceptée
madhan ravi
le 13 Sep 2019
Modifié(e) : madhan ravi
le 13 Sep 2019
[~,~,c] = unique(B,'stable');
A = A(c)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Discrete Math 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!