フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
MAMATHA YADAVALLI
MAMATHA YADAVALLI 2017 年 12 月 31 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (1 件)

the cyclist
the cyclist 2017 年 12 月 31 日
Here is one way:
x=rand(512,1);
p=1:16:512;
q=setdiff(1:512,p);
disp(x(q))

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by