Improved animation support

Duncan Carlsmith on 6 Jan 2026 at 16:27
Latest activity Reply by Duncan Carlsmith on 7 Jan 2026 at 5:36

I struggle with animations. I often want a simple scrollable animation and wind up having to export to some external viewer in some supported format. The new Live Script automation of animations fails and sabotages other methods and it is not well documented so even AIs are clueless how to resolve issues. Often an animation works natively but not with MATLAB Online. Animation of results seems to me rather basic and should be easier!
Duncan Carlsmith
Duncan Carlsmith on 7 Jan 2026 at 5:36
Paul, Benjamin: Give me some time and I'll dredge up some illustrations I should have sent to tech support. It's a gnarly thing, and has been super frustrating. A lot has to do with trapping timing I think and that is different in MATLAB Online and native but I get total fails in Live Scriot native too, not just in MATLAB Online. More to the point, I think the lovely in principle auto animation in Live Scripts is sabotaging other methods leading to animations that result in useless animations showing say maybe two frames.
Paul
Paul on 7 Jan 2026 at 4:19 (Edited on 7 Jan 2026 at 4:31)
Coincidentally, I was working on a LiveScript earlier today and the code had a simple animation of the form
figure; hold on
for ii = 1:N
% do some stuff
% plot some stuff
drawnow;
end
Nothing complicated.
After running the code and watching the animation the figure had a scroll bar underneath that allowed me to click once to rerun the full animation w/o rerunning the code, or scroll back and forth manually.
How do you find that "The new Live Script automation of animations fails"?
Benjamin Kraus
Benjamin Kraus on 6 Jan 2026 at 22:12
@Duncan Carlsmith: Can you explain more about what you mean by "scrollable animation"? Are you talking about a chart where you use the scroll wheel to "scroll" through your data? An example might be a 3D fMRI data set which you are viewing in 2D and want to use the scroll wheel to change which slice you are viewing. Or are you describing something else?
Any additional details about your data and how you want the animation to behave would be useful, as well as the methods you've tried and how they have failed. Feel free to contact me directly if you don't want to share the details publicly.