How could I make a program where an excel file is a input?
조회 수: 1 (최근 30일)
이전 댓글 표시
I mean you have to tell the program just the name of the excel file. I know this doesn't work, but it can help you to understand what I mean.
function
P = input('excell name = ')
t = xlsread('P')
end
댓글 수: 0
답변 (1개)
KSSV
2016년 10월 4일
function t = readexel(filename)
if ~ischar(filename)
error('input hsould be a filename')
end
t = xlsread(filename)
end
You can try like the above.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!