i have found this example of how to export figures into pdf
my code currently is plotting graphs from a for loop can anyone help in addapting the above code so it can be used in a for loop and add new figure to the pdf each loop or something along those lines.
What exactly is too small: Too much space between the axes or the too much space between the axes anbd the border? Maybe setting the 'PaperPosition' of the figure solves your problem, or one of these FileExchange submissions:
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country
sites are not optimized for visits from your location.