xlmtree undefined function read

3 Ansichten (letzte 30 Tage)
giusipa
giusipa am 22 Mär. 2019
Beantwortet: giusipa am 22 Mär. 2019
I copied the xlmtree folder into the toolbox folder of matlab.
While I keep the file of the data : AI.xrdml inside a folder of Pc desktop .
Actually, the path of MAtlab is the following '/Users/name/Desktop/Xray/xmltree-2.0/'
Then I run the following script
d = 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 the output is the following:
>> xray
Undefined function or variable 'XRDMLread'.
Error in xray (line 3)
d = XRDMLread('AU.xrdml') %#ok<NOPTS>
Can someone help me to solve this problem?

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 22 Mär. 2019
Bearbeitet: KALYAN ACHARJYA am 22 Mär. 2019
Just save the XRDMLread custom function in the same directory, same file also in attached.
And run the main script again.
Please check wheather you looking for XRDMLread file is same or not.

Weitere Antworten (2)

giusipa
giusipa am 22 Mär. 2019
I saved the file you gave me, the folder and my data on desktop, but still as output I have the following
>> xray
Undefined function or variable 'XRDMLread'.
Error in xray (line 3)
d = XRDMLread('AU.xrdml') %#ok<NOPTS>
Maybe there is some problem with the pathway? How can I be sure that I set the right one?
Many thanks for your precious help

giusipa
giusipa am 22 Mär. 2019
Hi Kalian
what did you mean Just save the XRDMLread custom function in the same directory, same file also in attached
Can you give me some further support .
Despite the same directory I still have problems

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by