Convert a MATLAB structure into a XML file.
9,8K téléchargements
Mise à jour 2 jan. 2012

Afficher la licence

This function converts a MATLAB structure into a XML file.

Citation pour cette source

Wouter Falkena (2024). struct2xml (, MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2008b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
En savoir plus sur Structured Data and XML Documents dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version

The function now replaces element and attribute names containing _dash_ by -, _dot_ by . and _colon_ by :

Bugfix in val2str subfunction

Removed the for-loop in the val2str subfunction, thereby increasing the speed drastically.

Increased the speed of the str2val subfunction by removing the for-loop and making use of the suggestion of T. Lohuis.

Improved processing speed for multiline strings (or arrays) by 160%.

Added the on-screen output functionality suggested by Philipp Orth

Added a warning for ill-formatted Attributes