How could I make a program where an excel file is a input?

조회 수: 1 (최근 30일)
Roger Vegeta
Roger Vegeta 2016년 10월 4일
답변: KSSV 2016년 10월 4일
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

답변 (1개)

KSSV
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.

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by