Importing 'n' number of cells in xlsread while n is not constant!
조회 수: 1 (최근 30일)
이전 댓글 표시
My code is given below
n=caselist(1,1);
[num, txt] = xlsread('S:/PLOT/PLOT.xlsx', 'B4:B29');
In my data, the start cell (B4) is fixed but the final cell (B29) is not!
So, I'd like to get cells from B4 to B'n' (n: is a variable that points number of cells to be imported).
댓글 수: 0
채택된 답변
Paolo
2018년 7월 8일
n = caselist(1,1);
range = strcat('B4:B',num2str(n))
[num, txt] = xlsread('S:/PLOT/PLOT.xlsx', range);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!