Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
MAMATHA YADAVALLI
MAMATHA YADAVALLI am 31 Dez. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

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

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by