Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Roger Vegeta
Roger Vegeta le 4 Oct 2016
Réponse apportée : KSSV le 4 Oct 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

Réponses (1)

KSSV
KSSV le 4 Oct 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.

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by