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]

 Akzeptierte Antwort

Jan
Jan am 16 Mär. 2015

0 Stimmen

if strcmp(in, 'a')
B = 'AS';
else % not elseif
B = 'AQ';
end
columnB = xlsread(filename, [B, ':', B]);

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 16 Mär. 2015

Beantwortet:

Jan
am 16 Mär. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by