How to select cells in a table with values in a given range?

조회 수: 3 (최근 30일)
Elissa
Elissa 2018년 3월 29일
댓글: Elissa 2018년 3월 29일
E.g. I want to select every cell from a column whose content is a number in the range 1:2:17.
  댓글 수: 3
Bob Thompson
Bob Thompson 2018년 3월 29일
Are you looking to do this selection in matlab, or in excel directly?
Elissa
Elissa 2018년 3월 29일
Shounak Shastri - yes I want to select the cells that contain a value in the range 1 to 17 in steps of 2.
Bob Noob - I want to do this in matlab on a matlab table.

댓글을 달려면 로그인하십시오.

채택된 답변

Peter Perkins
Peter Perkins 2018년 3월 29일
Hard to say what you are really asking, but in MATLAB ...
t = readtable(example.xls')
t2 = t(ismember(t.condition,1:2:17),:)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by