How to pass the name of a file to a function - dataset
Ältere Kommentare anzeigen
Dear all,
How can I create a function for loading an excel file into a dataset array in matlab?
I have tried something like this:
function tryB( X )
data=dataset('xlsfile',inputname(1));
end
But I get the following error each time.
Undefined function 'tryB' for input arguments of type 'char'.
Thank you,
Diego
Akzeptierte Antwort
Weitere Antworten (1)
Diego
am 7 Dez. 2012
0 Stimmen
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!