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

1 Ansicht (letzte 30 Tage)
Roger Vegeta
Roger Vegeta am 4 Okt. 2016
Beantwortet: KSSV am 4 Okt. 2016
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

Antworten (1)

KSSV
KSSV am 4 Okt. 2016
function t = readexel(filename)
if ~ischar(filename)
error('input hsould be a filename')
end
t = xlsread(filename)
end
You can try like the above.

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by