Assuming that your structure is named S, you can loop over it like this:
for k = 1:numel(S)
plot(S(k).data) % default plots the columns of the input array
fnm = sprintf('plot_%d.png',k);
saveas(fgh,fnm)
end


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