How to read cell range from one cell in file
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi all
I want to read cell range from a file. Each cell of this file contains a different cell range. For example raw is the file and raw(2,3) = 3:4, 6:10
So I want X(raw{2,3}) which is the same as X(3:4,6:10) but when I run it they are not the same. Each one gives different result. Any idea how I can fix it?
댓글 수: 2
답변 (2개)
Andrei Bobrov
2013년 5월 6일
raw(2,3) = {3:4, 6:10};
댓글 수: 5
Andrei Bobrov
2013년 5월 6일
raw = cell(3);
raw{2,3} = {3:4,6:10};
X = randi(18,10); eg
X(raw{2,3}{:})
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!