How to find rest of the number in matrix ?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
a = 1:10;
I = find(a>5)
aa = a(I)
bb = %%% How do I find the rest of the numbers??
0 Commenti
Risposta accettata
Più risposte (1)
Viranch Patel
il 22 Set 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 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!