Borrar filtros
Borrar filtros

How to use if statement with xlsread function?

1 visualización (últimos 30 días)
gsourop
gsourop el 17 de Oct. de 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.

Respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by