Thanks for everyone's input, much appreciated as always.
Using Tom's method, I get the fieldnames returned. However, when it comes to writing the field to a file (fprintf), Matlab throws an error saying the fieldname does not exist, even though it just confirmed all the fieldnames??
Any ideas why this might be?
See the error below:
Sending eFetch query to PubMed. Awaiting response... Field names: MedlineCitation: [1x1 struct] PubmedData: [1x1 struct]
??? Reference to non-existent field 'PubmedData'.
Error in ==> databaseresultsgui_v2ps>btnLitSearch_Callback at 182 fprintf(fileID,abstr.PubmedData)
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> databaseresultsgui_v2ps at 44 gui_mainfcn(gui_State, varargin{:});
Error in ==> guidemfile>@(hObject,eventdata)databaseresultsgui_v2ps('btnLitSearch_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback