필터 지우기
필터 지우기

How to skip certain index numbers in row vector in matlab

조회 수: 41 (최근 30일)
charu shree
charu shree 2020년 6월 27일
답변: madhan ravi 2020년 6월 27일
Hello all,
I have a row vector of 50 elements. I want to apply a specific operation to all the elements except the indices number 11,21,31,41 of this row vector. How can i do this in effective and faster way. Thanks in advance....

답변 (1개)

madhan ravi
madhan ravi 2020년 6월 27일
indices = setdiff(1:50, [11,21,31,41])

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by