how to add a gif file to a published code

3 次查看(过去 30 天)
hi, I would like to publish my matlab code, and add a GIF file to the published document. how can it be done?
I tried using :
% <<filename.gif>>
but only got a snapshot from the gif.
many thanks.

回答(1 个)

Aniket
Aniket 2025-6-11
As far as I know, PDF does not support GIF, and hence only the snapshot is shown once it's saved. Instead, you can use export command in live editor to publish your code to a HTML file which supports GIFs.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by