- Import the gif file into the workspace.
- Grab the axes object of the gif.
- Set axes position something like below
How to increase gif quality or resolution in Matlab
22 次查看(过去 30 天)
显示 更早的评论
Dear friends, I was trying use imwrite to export the gif file, but I found it's hard to increase the resolution of it. How could I increase the quality of gif?
0 个评论
回答(1 个)
Rishabh Mishra
2020-9-2
Hi,
GIF use a lossless compression. Therefore, you cannot change the "quality" of gifs. However, you can change the size of the frame of the gif with the steps below:
>> axes('Units', 'pixels', 'Position', [10, 10, 100, 200]);
The above code sets position units to ‘pixels’ & position as ‘[10, 10, 100, 200]’.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!