How to find rest of the number in matrix ?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
M M Nabi
le 22 Sep 2021
Réponse apportée : Viranch Patel
le 22 Sep 2021
a = 1:10;
I = find(a>5)
aa = a(I)
bb = %%% How do I find the rest of the numbers??
0 commentaires
Réponse acceptée
Plus de réponses (1)
Viranch Patel
le 22 Sep 2021
a = 1:10;
I = find(a>5);
aa = a(I);
bb = a;
bb(I)=[];
You can reassign the value of bb as 'a' and then can have other values by specifying bb(I) = [].
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!