How to find rest of the number in matrix ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
M M Nabi
el 22 de Sept. de 2021
Respondida: Viranch Patel
el 22 de Sept. de 2021
a = 1:10;
I = find(a>5)
aa = a(I)
bb = %%% How do I find the rest of the numbers??
0 comentarios
Respuesta aceptada
Más respuestas (1)
Viranch Patel
el 22 de Sept. de 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 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!