How the extract the value of odd places?

조회 수: 1 (최근 30일)
vimal kumar chawda
vimal kumar chawda 2021년 5월 31일
답변: Image Analyst 2021년 5월 31일
I have 8*1 matrix and I need to extract 1,3,5,7 odd places value.
I have 8*1 matrix and I need to extract 2,4,6,8 even places value.
odd_point = objectpointsepoch1(__,:)
even_point = objectpointsepoch1(__,:)

채택된 답변

Image Analyst
Image Analyst 2021년 5월 31일
Hint:
odd_point = objectpointsepoch1(1:2:7)
You should have learned this basic syntax during the first half hour of learning MATLAB. Try this link:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by