Hi everyone! Please I need some help with batch importing a bunch of xml file files I have in a folder into my workspace. I tried to use xml2struct but it only gets one

2 views (last 30 days)
Daniel Abraham
Daniel Abraham on 15 Jul 2021
Commented: Simon Chan on 15 Jul 2021
clear all
[file_list,path_name]=uigetfile('.xml', 'Grab the files you want to process', 'Multiselect', 'on' );
for i=1:length(file_list)
% Using the xml2struct with a path to each xml file works but my problem is
% how to loop through each file in the folder

Accepted Answer

Simon Chan
Simon Chan on 15 Jul 2021
Edited: Simon Chan on 15 Jul 2021
Try to add the indexing for variable 'data' and each file name
for i=1:length(file_list)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!