Rank: 96716 based on 0 downloads (last 30 days) and 0 file submitted

Michael Glanznig

Vienna University

Personal Profile:


Watch this Author's files


Comments and Ratings by Michael Glanznig
Updated File Comments Rating
12 Jan 2010 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski

A great tool! I recently found a little glitch with number recognition.
When you have something like:
This is correctly identified as vector, however if you use
<tag attr="[1,2]">...</tag>
you get NaN as output.

In the str2var function it is distinguished between attribute and tag. If you have a tag the str2num function is used, which works. For an attribute the str2double function is used, which does not accept something in form of [1,2] as valid number.

Why are this two different functions used? Are there any side effects if you always use the str2num function?

Contact us