필터 지우기
필터 지우기

assess the xlread in elsefi command

조회 수: 3 (최근 30일)
Nabeel
Nabeel 2015년 3월 16일
답변: Jan 2015년 3월 16일
xlread is used to read xls files i want to use this command in ifelse condiations
if input==a
B=AS
elseif
B=AQ
it means that xlread the column AS
how i generate the code for above algorithm
columnB = xlsread(filename,'B:B')
[EDITED, Jan, please format the code properly, thanks]

채택된 답변

Jan
Jan 2015년 3월 16일
if strcmp(in, 'a')
B = 'AS';
else % not elseif
B = 'AQ';
end
columnB = xlsread(filename, [B, ':', B]);

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by