You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Like Matlab's saveas.m, but better:
- Print figures as pdf in their correct dimensions (and not on A4 paper like Matlab does).
- If you prefer, you can specify the size of the printed pdf, independent of its size on screen.
- Optionally increase line thickness and font size for better readability.
- Optionally set figure background color to transparent for use in presentations.
Example:
figure('Name','A sine');
plot(sin(linspace(0,2*pi,100)));
saveaspdf; % Saves 'A sine.pdf' on your Desktop
Cite As
Laurent S (2026). saveaspdf (https://www.mathworks.com/matlabcentral/fileexchange/32113-saveaspdf), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (2.72 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
