Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to access data?

2 visualizaciones (últimos 30 días)
Tshering Lhamo
Tshering Lhamo el 4 de Abr. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
With a data as follows:
8
4
1
7
65
66
399
318
489
63
64
8
4
1
63
489
318
400
319
499
61
62
If I wanted to get the numbers excluding 8, 4 and 1.. how should I go about? When I try to access, it says "function invalid for input argument type 'double'. Thanks.

Respuestas (1)

Walter Roberson
Walter Roberson el 4 de Abr. de 2016
x = [8
4
1
7
65
66
399
318
489
63
64
8
4
1
63
489
318
400
319
499
61
62];
x_without = x(~ismember(x, [8, 4, 1]);
  1 comentario
Tshering Lhamo
Tshering Lhamo el 4 de Abr. de 2016
Thank you so much. Works perfectly!

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by