How to use if statement with xlsread function?

1 view (last 30 days)
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.

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!