Filter löschen
Filter löschen

How to use if statement with xlsread function?

1 Ansicht (letzte 30 Tage)
gsourop
gsourop am 17 Okt. 2017
Hi,
I would like to set an if statement that will verify whether the values of y come from the corresponding column and will give back the argument such that:
if y = xlsread(input_file,input_sheet,'b1:b5');
input_sheet='Sheet1';
if y = y=xlsread(input_file,input_sheet,'c1:c5');
input_sheet='Sheet2';
else input_sheet='Sheet3';
end
end
input_file='DATASET';
x=xlsread(input_file,input_sheet,'b1:d5');
Thank you.

Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by