Cherishtttz
Cherishtttz

Reputation: 3

How to convert .mat file to .xml file?

I want to use some models trained through DPM algorithm under MATLAB,but I need to convert its format from .mat to .xml so that I can transfer the models under OpenCV environment.if there are some critical functions to use?

Upvotes: 0

Views: 3753

Answers (1)

Dennis Jaheruddin
Dennis Jaheruddin

Reputation: 21561

It seems that you want to store one or several variables as XML files. This can probably be achieved with the File Exchange XML Toolbox

str=xml_format(project,'off')

If desired, you can combine all variables in your workspace to a struct before using this function, to easily get them into a single XML file.


Note that it appears this only works with Matlab versions older than 2016a.

Upvotes: 1

Related Questions