How to use if statement with xlsread function?

조회 수: 1 (최근 30일)
gsourop
gsourop 2017년 10월 17일
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.

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by