Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

using Excel data in a fucntion

조회 수: 1 (최근 30일)
Philip
Philip 2014년 4월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello all I have an excel file i'm trying to extract data from to write an if statement something along the lines of if C3 is empty excute xyz. problem is the cell loction will be dermine by user input so(x=3. if Cx is empty excute xyz).this would require a user a variable input for the xlsread function
function login(X)
if xlsread(filename,A(X))==[]
q=xlsread(filename,range[b]);
else
functionxyz;
end
end
Any ideas on inputing a variable into xlsread?
  댓글 수: 1
dpb
dpb 2014년 4월 30일
...ideas on inputing a variable into xlsread?
To do what? Make the range dynamic? That's relatively simple.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by