xml_load.m
来自「这个程序即可以读取XMl文件并转换成matlab结构体」· M 代码 · 共 27 行
M
27 行
%XML_LOAD Loads XML file and return contents as Matlab structure or variable%% SYNTAX V = xml_load( filename )% V = xml_load( filename, attswitch )%% INPUT% filename filename of xml file to load (if extension .xml is omitted,% xml_load tries to append it if the file cannot be found).% This file should have been saved with xml_save().% If it's a non-Matlab XML file, please use e.g.% xmlstr = fileread(filename); V = xml_parseany(xmlstr);% attswitch optional, default='on':% 'on' takes attributes idx,size,type into account for% creating corresponding Matlab data types% 'off' ignores attributes in XML element headers%% OUTPUT% V Matlab structure or variable%% SEE ALSO% xml_save, xml_format, xml_formatany, xml_parse, xml_parseany, xml_help, (xmlread, xmlwrite) % Copyright (C) 2002-2005, University of Southampton% Author: Dr Marc Molinari <m.molinari@soton.ac.uk>% $Revision: 1.1 $ $Date: 2005/09/23 08:09:40 $ $Tag$
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?