How to remove white space around files generated from Simulink

1 view (last 30 days)
Previously my company used Matlab 2011a and I used the following code to save the currently selected Simulink window to a .eps file (or any other format).
saveas(get_param(gcb,'Handle'),[pwd '\' epsFileName '.eps'],'epsc');
This code worked perfectly and I got a nice eps file with zero white space and a high resolution image for use in my documents.
Now, we are using Matlab 2013b and the same line of code produces a lower resolution image filled with white space around the borders. I have also tried the print command with the same results.
I have tried many different file formats. The ones, such as png, that produce images with no white space are useless because zooming in on them causes them to look very pixelated. Others, like eps or PDF, produce images with tons of white space that wasn't there in 2011a. I have a lot of "screenshots" so doing this by hand and manually cropping white space later is a huge time consuming effort and not at all practical. I have spent hours looking for a solution but all I seem to find is a couple files for saving Matlab figures, not Simulink windows.
Is there anyway to get my Simulink subsystems to save as before with 2011a? What happened with the newer releases that the file formats you save to now include all the white space?

Answers (0)

Categories

Find more on Interactive Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!