|
1 | | -from mpython import Runtime |
| 1 | +from spm._runtime import Runtime |
2 | 2 |
|
3 | 3 |
|
4 | 4 | def loadxml(*args, **kwargs): |
5 | 5 | """ |
6 | | - LOADXML Load workspace variables from disk (XML file). |
7 | | - LOADXML FILENAME retrieves all variables from a file given a full |
8 | | - pathname or a MATLABPATH relative partial pathname (see PARTIALPATH). |
9 | | - If FILENAME has no extension LOAD looks for FILENAME and FILENAME.xml |
10 | | - and treats it as an XML file. |
11 | | -
|
12 | | - LOAD, by itself, uses the XML file named 'matlab.xml'. It is an error |
13 | | - if 'matlab.xml' is not found. |
14 | | -
|
15 | | - LOAD FILENAME X loads only X. |
16 | | - LOAD FILENAME X Y Z ... loads just the specified variables. The |
17 | | - wildcard '*' loads variables that match a pattern. |
18 | | - Requested variables from FILENAME are created in the workspace. |
19 | | -
|
20 | | - S = LOAD(...) returns the contents of FILENAME in variable S. S is |
21 | | - a struct containing fields matching the variables retrieved. |
22 | | -
|
23 | | - Use the functional form of LOAD, such as LOAD('filename'), when the |
24 | | - file name is stored in a string, when an output argument is requested, |
25 | | - or if FILENAME contains spaces. |
26 | | -
|
27 | | - See also LOAD, XML2MAT, XMLTREE. |
28 | | -
|
| 6 | + LOADXML Load workspace variables from disk (XML file). |
| 7 | + LOADXML FILENAME retrieves all variables from a file given a full |
| 8 | + pathname or a MATLABPATH relative partial pathname (see PARTIALPATH). |
| 9 | + If FILENAME has no extension LOAD looks for FILENAME and FILENAME.xml |
| 10 | + and treats it as an XML file. |
| 11 | + |
| 12 | + LOAD, by itself, uses the XML file named 'matlab.xml'. It is an error |
| 13 | + if 'matlab.xml' is not found. |
| 14 | + |
| 15 | + LOAD FILENAME X loads only X. |
| 16 | + LOAD FILENAME X Y Z ... loads just the specified variables. The |
| 17 | + wildcard '*' loads variables that match a pattern. |
| 18 | + Requested variables from FILENAME are created in the workspace. |
| 19 | + |
| 20 | + S = LOAD(...) returns the contents of FILENAME in variable S. S is |
| 21 | + a struct containing fields matching the variables retrieved. |
| 22 | + |
| 23 | + Use the functional form of LOAD, such as LOAD('filename'), when the |
| 24 | + file name is stored in a string, when an output argument is requested, |
| 25 | + or if FILENAME contains spaces. |
| 26 | + |
| 27 | + See also LOAD, XML2MAT, XMLTREE. |
| 28 | + |
29 | 29 |
|
30 | 30 | [Matlab code]( https://github.com/spm/spm/blob/main/compat/loadxml.m ) |
31 | 31 |
|
|
0 commit comments