From 0b63cb4874b3bb4e606550a9f6b3921dafbaa936 Mon Sep 17 00:00:00 2001 From: Kevin D Date: Mon, 25 May 2026 14:15:05 -0700 Subject: [PATCH] write initial video frame --- @miSim/run.m | 1 + 1 file changed, 1 insertion(+) diff --git a/@miSim/run.m b/@miSim/run.m index b0517d7..aa0ed7e 100644 --- a/@miSim/run.m +++ b/@miSim/run.m @@ -15,6 +15,7 @@ function [obj] = run(obj) % Capture reference frame size; used to resize frames that deviate % due to figure reflow during plot updates (e.g. in headless mode). I_ref = getframe(obj.f); + v.writeVideo(I_ref); videoFrameSize = [size(I_ref.cdata, 2), size(I_ref.cdata, 1)]; end end