I used Mathematica to export plots of NM measurements with this code:
Do[Export["Plot" <> ToString[i] <> ".pdf", Plottable[[i]], "PDF"], {i, NM}];
It does what it should do and I found this solution often on the Internet. On the other hand, I often read that one should avoid loops.
Is there a better (more elegant) solution? (I am not looking for another solution that just works.)
Do[]
is in fact eminently suitable. $\endgroup$Scan[]
is sometimes helpful. $\endgroup$