function calling toolboox use

Hi, I am running the following script
but it is like the XRMLread function is not seen.
The error is
>> XRDMLread
Undefined function or variable 'XRDMLread'.
I dowloaded the xrmltree toolbox and unzipped it in the same folder of the AU data (different from Matlab folder).
Some suggestion about how to use the toolboox? where should I unzip the toolbox.
d = XRMLread('AU.xrdml') %#ok<NOPTS>
% plot data
figure
semilogy( d.x , round(d.data*d.time) )
box on
xlabel( [d.xlabel '(' d.xunit ')'] )
ylabel( 'Intensity (counts)' )

5 件のコメント

Walter Roberson
Walter Roberson 2019 年 3 月 23 日
Are you referring to https://www.artefact.tk/software/matlab/xml/ ? If so then did you do the addpath() that they indicate ?
giusipa
giusipa 2019 年 3 月 23 日
I refer to that, but it is not really clear the addpath they want one to do.
do you have suggestion on that?
Walter Roberson
Walter Roberson 2019 年 3 月 23 日
addpath and follow it with the name of the directory that you unzipped the toolbox into. (Enclose the whole directory name in '' if there are any spaces in the name.)
giusipa
giusipa 2019 年 3 月 23 日
This is the script
addpath ('C/Users/myname/Documents/MATLAB')
% load XRDML data by a simple single command
%d = XRDMLread('AU.xrdml') %#ok<NOPTS>
XRDMLread('AU.xrdml') %#ok<NOPTS>
% plot data
figure
semilogy( d.x , round(d.data*d.time) )
box on
xlabel( [d.xlabel '(' d.xunit ')'] )
ylabel( 'Intensity (counts)' )
title( d.filename , 'Interpreter','none','FontName','Helvetica')
and this is the error.
All, the toolbox unfolded, the script saved as xmltree.m and the AU file are in the same folder Documents/Matlab
>> xmltree
Warning: Name is nonexistent or not a directory:
C:\Users\myname\Documents\MATLAB\C\Users\myname\Documents\MATLAB
> In path (line 109)
In addpath (line 86)
In xmltree (line 1)
Undefined function or variable 'XRDMLread'.
Error in xmltree (line 4)
XRDMLread('AU.xrdml') %#ok<NOPTS>
Walter Roberson
Walter Roberson 2019 年 3 月 23 日
addpath('C:\Users\myname\Documents\MATLAB')

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 3 月 23 日

0 投票

XRMLread is from a completely different toolbox. http://www.xray.cz/xrdmlread/

2 件のコメント

giusipa
giusipa 2019 年 3 月 23 日
It is impossible to look at the toolbox you highlighted, it has been removed.
Thank you for your help.
updating with the addpath I get this,d is still undefined.
>> xmltree
ans =
XMLTree object (1 nodes) []
>> d
Undefined function or variable 'd'.
>> d = XRDMLread('AU.xrdml')
Undefined function or variable 'XRDMLread'.
Walter Roberson
Walter Roberson 2019 年 3 月 23 日
Get the XRMLread from the download link http://www.xray.cz/xrdmlread/Download.htm

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2019 年 3 月 23 日

コメント済み:

2019 年 3 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by