Borrar filtros
Borrar filtros

Info

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

x is 521*1 vector.i wanna to access x values except the positions of 1:16:512.

1 visualización (últimos 30 días)
x=rand(512,1);
p=1:16:512;
disp(x(p)) % it displays 1 value,17 value like that
i want to display the remainig positions value

Respuestas (1)

the cyclist
the cyclist el 31 de Dic. de 2017
Here is one way:
x=rand(512,1);
p=1:16:512;
q=setdiff(1:512,p);
disp(x(q))

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by