Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
CSV2STRUCT reads Excel's files stored in .xls or .csv file formats and stores results as a struct.
DESCRIPTION
The Excel file is assumed to have a single header row. The output struct will have a field for each column and the field name will be based on the column name read from the header.
Unlike csvread, csv2struct is able to read files with both text and number fields and store data as fields of a struct. Likely works on Windows machines only.
See also:
MATLAB's csvread and xlsread functions
xml_read from my xml_io_tools which creates struct out of xml files
Citation pour cette source
Jaroslaw Tuszynski (2026). csv2struct(filename) (https://fr.mathworks.com/matlabcentral/fileexchange/26106-csv2struct-filename), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
A inspiré : Struct array conversion
Informations générales
- Version 1.0.0.0 (2,12 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.0 | Updated syntax and removed no longer needed code for reading CSV files with more than 2^16 rows. Excel no longer has that limitation. |
