how to read arff file in matlab?

48 vues (au cours des 30 derniers jours)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran le 23 Déc 2013
Commenté : sambhav jain le 20 Fév 2020
how to read arff file in matlab? I use 2008b version

Réponses (2)

Rock Rocky
Rock Rocky le 7 Jan 2019
there are a few MATLAB interfaces for WEKA files on MATLAB File Exchange, I normally use this one: http://www.mathworks.com/matlabcentral/fileexchange/21204-matlab-weka-interface where you have a saveARFF() and a loadARFF() functions.
You can simply unzip the the exchange files into your working directory you can use loadARFF in this way: data = loadARFF('yourfile.arf')

Rock Rocky
Rock Rocky le 7 Jan 2019
You can use this code as well
DATA = importdata('Yourfilename.arff');
  1 commentaire
sambhav jain
sambhav jain le 20 Fév 2020
imortdata doesn't work correctly sometimes for example try converting the given arff file to mat file , it converts it into a cell instead of a struct .
anyway i am stuck on how to convert this dataset to mat format.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by