Save your plots or figures to JPEG

版本 1.0.0.0 (12.1 KB) 作者: Bruce Raine
Having issues viewing MATLAB figures or saving them? Then use this JPEG generating function.
195.0 次下载
更新时间 2011/8/13

查看许可证

This function takes in a figure and saves it to a JPEG file. You can specify up to 3 parameters: the filename, quality level and a file handle to your figure. The function returns the current filename.

If no parameters are specified then the function creates a dummy JPEG file using default settings. This is a FFT plot of a sine wave. Hence the function name.

You can also just give fftFig one parameter (i.e. handle) or two parameters (i.e. handle + filename).
%
% EX:
% >> handle = figure;
% >> plot([1:5]);
% >> fftFig(handle,'afile1',100)
% ans =
% afile1
%

I have zipped the dummy JPEG figure in with the MATLAB-file for your convenience.

引用格式

Bruce Raine (2024). Save your plots or figures to JPEG (https://www.mathworks.com/matlabcentral/fileexchange/32528-save-your-plots-or-figures-to-jpeg), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0