How to pass the name of a file to a function - dataset
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!